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

sitemap.XML provides an incorrect URL for the <loc> tag when ROOT context is changed

    Details

      Description

      Description

      When the customer changes the root context of the portal, they have found that the location URL in the sitemap.XML does not change along with it to show the new web context.

      Steps to reproduce

      1. Change the name of the ROOT directory to 'ptl'.
      2. Change the name of /TOMCAT_HOME/conf/Catalina/localhost/ROOT.xml to 'ptl.xml'
      3. Add the "path" attribute to the Context tag in the newly named 'ptl.xml' as follows:
        <Context crossContext="true" path="/ptl">
      4. Ensure all changes are saved and start Liferay.
      5. Access the portal sitemap at localhost:8080/ptl/sitemap.xml

      Results of Testing

      Expected Results: <loc> element that shows site URL should have new web context (localhost:8080/ptl/sitemap.xml)
      Actual Results: <loc> element that shows site URL does not have new web context (localhost:8080/sitemap.xml)

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 14 weeks, 2 days ago

                Packages

                Version Package
                7.0.0 DXP FP17
                7.0.3 CE GA4
                7.0.0 DXP SP4
                7.1.X
                Master