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

Property value of locale.prepend.friendly.url.style is ignored in sitemap.xml

    Details

      Description

      1. Set locale.prepend.friendly.url.style=2 in portal-ext.properties
      2. Start the portal and create a blank site and a page in it
      3. Go to the site's Site Settings > Sitemap on Control Panel (On master: Open the Public Pages' kebab menu and choose Configure, then switch to Advanced)
      4. Click on the preview link to open sitemap.xml and open the source of the page to examine the XML

      Result:

      • Nothing but a <url> element with the same <loc> will be displayed twice, and none of them will have the locale in the url.
      • The alternate URL for the default language will also not have the locale contained within the URL. E.g. it will have <xhtml:link href="http://localhost:8080/web/testsite1/testpage2" hreflang="en-US" rel="alternate"/> instead of <xhtml:link href="http://localhost:8080/en/web/testsite1/testpage2" hreflang="en-US" rel="alternate"/>

        Attachments

          Issue Links

            Activity

              People

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

                Dates

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

                  Packages

                  Version Package
                  6.2.X EE
                  7.0.0 DXP FP20
                  7.0.3 CE GA4
                  7.0.0 DXP SP4
                  7.0.X EE
                  Master