Legacy Knowledge Base
Published Jun. 30, 2025

Unable to generate friendly url for blogs

Written By

Anushka Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

Issue

  • When trying to generate a friendly URL for blogs, to eliminate the lengthy URLs. Followed the  steps mentioned in this document: Friendly URLs 

Expected behavior: The URL should be shortened after following the document.
Observed behavior: A friendly URL is not generated after the changes.

Environment

  • Liferay DXP 7.1

Resolution

  • The portlet URL is being generated in Javascript via Liferay.PortletURL.
  • Liferay.PortletURL was used to generate friendly portlet URLs in Liferay 6.x via PortletURLAction, but this feature was deprecated during Liferay 6.x.
  • When this is removed, it is no longer exists in 7.0, and deprecated the features for 7.x as part of LPSA-45679
  • There is no out-of-the-box feature available to implement the friendly URL on blogs using the Liferay.PortletURL

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base