Legacy Knowledge Base
Published Sep. 10, 2025

Change in "view in context" URL for document file entries

Written By

Phil Chapman

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

  • Why does the Search Results Portlet display a different "view in context" URL for document file entries after upgrading to dxp-15?

Environment

  • DXP 7.2 with dxp-15+

Resolution

  • Up until dxp-14, the URL format was as follows:

    http://localhost:8080/c/document_library/find_file_entry?...

    There was a bug identified where in some cases the above URL failed.

    This was addressed in LPS-91413 and released in dxp-15, in which the URL format was changed to:

    http://localhost:8080/web/guest/search?...

  • The fix is backwards compatible by adding a Document and Media Portlet to a public page. The portlet provides the necessary context to ‘show the document in its context’ so the old URL is redirected to the new URL.


Additional Information

  • Please see this related Feature Request proposing the inclusion of a 'short URL formatter'

 

Did this article resolve your issue ?

Legacy Knowledge Base