<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>How to change Display Template Page url for Blog posts?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117253241" />
  <subtitle>How to change Display Template Page url for Blog posts?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=117253241</id>
  <updated>2026-04-11T13:52:33Z</updated>
  <dc:date>2026-04-11T13:52:33Z</dc:date>
  <entry>
    <title>RE: How to change Display Template Page url for Blog posts?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122057477" />
    <author>
      <name>Ponselvan Ganesan</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=122057477</id>
    <updated>2023-09-26T20:32:56Z</updated>
    <published>2023-09-26T09:13:13Z</published>
    <summary type="html">&lt;p&gt;Hi Johanna,&lt;/p&gt;
&lt;p&gt;We are facing issue while rendering the blogs content.&lt;/p&gt;
&lt;p&gt;We are using Liferay DXP 7.4 OOTB Blogs functionality. As we are
    using &lt;strong&gt;Display page template&lt;/strong&gt; for blogs details page
  the URL being formed is :&lt;br&gt; https://www.xxx.in&lt;strong&gt;/b/&lt;/strong&gt;blog-title&lt;/p&gt;
&lt;p&gt;We were able to override the URL from /b to /blogs through overridden
  of below constant class value,&lt;/p&gt;
&lt;p&gt;https://github.com/Liferay/liferay-portal/blob/master/portal-kernel/src/com/liferay/portal/kernel/portlet/constants/FriendlyURLResolverConstants.java&lt;/p&gt;
&lt;p&gt;Problem:&lt;br&gt; The issue is occurring when we click on read more option
  or results from the global search the page being redirected to the
  &amp;quot;&lt;br&gt; https://www.xxx.in&lt;strong&gt;/blogs/&lt;/strong&gt;blog-title&amp;quot;
  page, but the blogs content are not rendering and it's throwing error.
  The blogs content still available only in &lt;strong&gt;/b&lt;/strong&gt; URL.&lt;/p&gt;
&lt;p&gt;Could you please help us on this issue to resolve it ASAP ?&lt;/p&gt;</summary>
    <dc:creator>Ponselvan Ganesan</dc:creator>
    <dc:date>2023-09-26T09:13:13Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to change Display Template Page url for Blog posts?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118511193" />
    <author>
      <name>Johanna Tchon</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=118511193</id>
    <updated>2020-02-14T15:06:52Z</updated>
    <published>2020-02-14T15:06:52Z</published>
    <summary type="html">&lt;html&gt;&lt;head&gt;&lt;/head&gt;&lt;body&gt;If you want to change the friendly url for blogs, you should create a new InfoDisplayContributor, you can copy BlogsEntryInfoDisplayContributor and then change the&lt;br&gt;&lt;pre&gt;&lt;code&gt;public String getInfoURLSeparator() &lt;/code&gt;&lt;/pre&gt;Currently it return "/b/".&lt;/body&gt;&lt;/html&gt;</summary>
    <dc:creator>Johanna Tchon</dc:creator>
    <dc:date>2020-02-14T15:06:52Z</dc:date>
  </entry>
  <entry>
    <title>How to change Display Template Page url for Blog posts?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117253240" />
    <author>
      <name>Adam Fuiba</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=117253240</id>
    <updated>2019-09-22T16:49:25Z</updated>
    <published>2019-09-22T16:49:25Z</published>
    <summary type="html">I&amp;#39;m using the &lt;strong&gt;&lt;strong&gt;Blogs&lt;/strong&gt;&lt;/strong&gt; portlet to list all blog posts in a page &lt;em&gt;&lt;em&gt;localhost:8080/web/guest&lt;strong&gt;/blog&lt;/strong&gt;&lt;/em&gt;&lt;/em&gt; and I use the &lt;u&gt;&lt;a href="https://portal.liferay.dev/docs/7-1/user/-/knowledge_base/u/display-page-example"&gt;Display Template Page&lt;/a&gt;&lt;/u&gt; for blog details.&lt;br /&gt;​​​​​​​The problem is that when I open a post the URL changes to: &lt;u&gt;&lt;a href="http://localhost:8080/web/guest/b/blog-post-example"&gt;http://localhost:8080/web/guest&lt;strong&gt;/b/blog-post-example&lt;/strong&gt;&lt;/a&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;a href="http://localhost:8080/web/guest/b/blog-post-example"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/u&gt;The friendly url for Blog is changed from:&lt;br /&gt;&lt;u&gt;&lt;a href="http://localhost:8080/web/guest/blog/"&gt;http://localhost:8080/web/guest&lt;strong&gt;/blog/&lt;/strong&gt;&lt;/a&gt;&lt;/u&gt;&lt;br /&gt;to&lt;br /&gt;&lt;u&gt;&lt;a href="http://localhost:8080/web/guest/b/"&gt;http://localhost:8080/web/guest&lt;strong&gt;/b/&lt;/strong&gt;&lt;/a&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/u&gt;&lt;br /&gt;&lt;u&gt;&lt;a href="http://localhost:8080/web/guest/b/"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/a&gt;&lt;/u&gt;Is there a way to avoid changing the parent page url?</summary>
    <dc:creator>Adam Fuiba</dc:creator>
    <dc:date>2019-09-22T16:49:25Z</dc:date>
  </entry>
</feed>
