Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to change Display Template Page url for Blog posts?
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 parent page url?
public String getInfoURLSeparator() Currently it return "/b/".
Hi Johanna,
We are facing issue while rendering the blogs content.
We are using Liferay DXP 7.4 OOTB Blogs functionality. As we are
using Display page template for blogs details page
the URL being formed is :
https://www.xxx.in/b/blog-title
We were able to override the URL from /b to /blogs through overridden of below constant class value,
https://github.com/Liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/portlet/constants/FriendlyURLResolverConstants.java
Problem:
The issue is occurring when we click on read more option
or results from the global search the page being redirected to the
"
https://www.xxx.in/blogs/blog-title"
page, but the blogs content are not rendering and it's throwing error.
The blogs content still available only in /b URL.
Could you please help us on this issue to resolve it ASAP ?