Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-122791

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

Details

    Description

      Description

      On a site that has staging enabled, when adding a Staging URL within an HTML Fragments, the URL is not converted to the associated Live site URL when published. This is expected behavior by the client as Staging URLs in Web Content articles and other assets are converted when they are published and interacted with in the Live site.

      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 a 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

      Results of Testing

      Expected Result: The link on the Live site would point to the corresponding Live page
      Actual Result: The link published from staging stil 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).

      Errors/Logs

      No errors

      Master

      Reproduced.
      Hash#: 4f10fb510369b027f8ba24c0e128bfcafbfb4cbb

      Branch

      Reproduced.
      Hash#: 522bee98dbe85c6cbaefe9e33dc4dc4348104180

      Attachments

        Activity

          People

            joyce.wang Joyce Wang
            il.kim Brian I. Kim
            Kiyoshi Lee Kiyoshi Lee
            Brian I. Kim Brian I. Kim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              2 years, 28 weeks, 2 days ago

              Packages

                Version Package
                7.2.X
                7.3.10 DXP FP1
                7.3.10.1 DXP SP1
                7.3.6 CE GA7
                7.3.X
                7.4.13 DXP GA1
                Master