<?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 get friendly URL in Liferay DXP ?</title>
  <link rel="self" href="https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112166556" />
  <subtitle>How to get friendly URL in Liferay DXP ?</subtitle>
  <id>https://liferay.dev/c/message_boards/find_thread?p_l_id=119785294&amp;threadId=112166556</id>
  <updated>2026-04-05T00:05:37Z</updated>
  <dc:date>2026-04-05T00:05:37Z</dc:date>
  <entry>
    <title>How to get friendly URL in Liferay DXP ?</title>
    <link rel="alternate" href="https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112166555" />
    <author>
      <name>Vishnu S Kumar</name>
    </author>
    <id>https://liferay.dev/c/message_boards/find_message?p_l_id=119785294&amp;messageId=112166555</id>
    <updated>2019-01-29T16:52:48Z</updated>
    <published>2019-01-29T16:52:48Z</published>
    <summary type="html">We have the&lt;a href="eclipse-javadoc:%E2%98%82=th-module-search-service/C:%5C/Users%5C/vishn%5C/.gradle%5C/caches%5C/modules-2%5C/files-2.1%5C/com.liferay.portal%5C/com.liferay.portal.kernel%5C/2.0.0%5C/2b7c4bb22f87dcf60ccf05d45c972f3944b8e447%5C/com.liferay.portal.kernel-2.0.0.jar%3Ccom"&gt; &amp;#34;com&lt;/a&gt;.&lt;a href="eclipse-javadoc:%E2%98%82=th-module-search-service/C:%5C/Users%5C/vishn%5C/.gradle%5C/caches%5C/modules-2%5C/files-2.1%5C/com.liferay.portal%5C/com.liferay.portal.kernel%5C/2.0.0%5C/2b7c4bb22f87dcf60ccf05d45c972f3944b8e447%5C/com.liferay.portal.kernel-2.0.0.jar%3Ccom.liferay"&gt;liferay&lt;/a&gt;.&lt;a href="eclipse-javadoc:%E2%98%82=th-module-search-service/C:%5C/Users%5C/vishn%5C/.gradle%5C/caches%5C/modules-2%5C/files-2.1%5C/com.liferay.portal%5C/com.liferay.portal.kernel%5C/2.0.0%5C/2b7c4bb22f87dcf60ccf05d45c972f3944b8e447%5C/com.liferay.portal.kernel-2.0.0.jar%3Ccom.liferay.portal"&gt;portal&lt;/a&gt;.&lt;a href="eclipse-javadoc:%E2%98%82=th-module-search-service/C:%5C/Users%5C/vishn%5C/.gradle%5C/caches%5C/modules-2%5C/files-2.1%5C/com.liferay.portal%5C/com.liferay.portal.kernel%5C/2.0.0%5C/2b7c4bb22f87dcf60ccf05d45c972f3944b8e447%5C/com.liferay.portal.kernel-2.0.0.jar%3Ccom.liferay.portal.kernel"&gt;kernel&lt;/a&gt;.&lt;a href="eclipse-javadoc:%E2%98%82=th-module-search-service/C:%5C/Users%5C/vishn%5C/.gradle%5C/caches%5C/modules-2%5C/files-2.1%5C/com.liferay.portal%5C/com.liferay.portal.kernel%5C/2.0.0%5C/2b7c4bb22f87dcf60ccf05d45c972f3944b8e447%5C/com.liferay.portal.kernel-2.0.0.jar%3Ccom.liferay.portal.kernel.model"&gt;model&lt;/a&gt;.Layout&amp;#34; Object.  Using this object we need to find its friendly URL. The &lt;strong&gt;PortalUtil.getLayoutFriendlyURL()&lt;/strong&gt; needs the &amp;#39;ThemeDisplay&amp;#39; object and we can&amp;#39;t create that object. The &lt;strong&gt;PortalUtil.getLayoutActualURL() &lt;/strong&gt;gives something like this &amp;#34;localhost:8080/c&lt;u&gt;/portal/layout?p_l_id=923&amp;amp;p_v_l_s_g_id=45&lt;/u&gt;&amp;#34; etc. But we need to get the friendly URL to the page (layout) like &amp;#34;localhost:8080/web/guest&lt;u&gt;/for-business/technology&amp;#34; . &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/u&gt;How to create the Friendly URL without ThemeDisplay Object provided the Layout Object ?</summary>
    <dc:creator>Vishnu S Kumar</dc:creator>
    <dc:date>2019-01-29T16:52:48Z</dc:date>
  </entry>
</feed>
