Legacy Knowledge Base
Published Jul. 2, 2025

Staging URLs within HTML Fragments are not converted to Live URLs when published

Written By

Amit 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

Steps to Reproduce

Originally tested in a 7.2 bundle patched to DXP-7:
1. Create a new widget page called Help
2. In [Site_Administration] > Publishing > Staging, enable Local Live staging, leaving the defaults
3. Copy the Help page's staging URL (http://[host/port]/web/guest-staging/help)
4. Create a new content page, "Test Page"
5. Place an HTML fragment onto Test Page
6. Edit the fragment to add the following, then publish the changes:

 <h1>
  Staging URL testing
 </h1>
<p> <a href="http://[host/port]/web/guest-staging/help">Staging URL Link</a> </p>

7. Confirm that the link works as expected
8. Publish the page to Live
9. Navigate to the Live site, access the Test Page, and attempt to navigate to the added link

Expected Result: The link on the Live site would point to the corresponding Live page
Actual Result: The link published from staging still points towards the Staging page (web/guest-staging/help) and not the Live page as expected of web/guest/help (redirecting users to authenticate, after which the staging page would still be inaccessible if they are not an admin).

Environment

  • Liferay DXP 7.3

Resolution

  • The observed behavior is a known issue/bug and has been fixed in dxp-2.
  • If the hotfix is required for this issue, please create a support ticket requesting hotfix by attaching patch details.
  • Installing Fix Packs and Hotfixes on Liferay DXP will guide to install this hotfix in the respective environment.

Additional Information

Did this article resolve your issue ?

Legacy Knowledge Base