0
votes

I'm using the Blogs portlet (Liferay 7.2 GA1) to list all blog posts in a page example.com/web/guest/blog and I use the Display Template Page for blog details.

The problem is that when I open a post the URL changes to: http://localhost:8080/web/guest/b/blog-post-example

The friendly url for Blog is changed from:
http://localhost:8080/web/guest/blog/
to
http://localhost:8080/web/guest/b/

Is there a way to avoid changing the url?

1
have you checked the friendly url settings of your blogs page? You can find this under build > pages > YourBlogPage (3 dots) > Configure You can define the friendly url there.Ahmed Hasn.

1 Answers

1
votes

If you want to change the friendly url for blogs you should create a new InfoDisplayContributor, you can copy BlogsEntryInfoDisplayContributor.java file and then change the

public String getInfoURLSeparator()

Currently, it returns '/b/'.