Legacy Knowledge Base
Published Jun. 30, 2025

Why isn't the file extension included by default in the new document URLs?

Written By

Sorin Pop

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

Environment

  • 7.4 U27+

Resolution

  • Before this, the url was including the filename, so any change to the filename was causing a broken link in the content using those documents. In order to solve that, we added a new field called friendlyURL that works pretty much as friendlyURLs in web content and pages, having a history, so even if the friendlyURL is changed, users are redirected to the document. The reason to base the autogenerated url in the name and not in the full filename, was that the main use case we were considering was display page templates, where you build a “nice” page to show the documents information, so it is more SEO friendly if the url has a “beautiful” name and not something like “myReport.xlx”.
  • Please also note that end users can always override the autogenerated URL when they upload/edit a document.

 

 

Did this article resolve your issue ?

Legacy Knowledge Base