-
Type:
Bug
-
Status: Closed
-
Resolution: Fixed
-
Affects Version/s: 6.2.10 EE GA1, 6.2.X EE, 7.0.1 CE GA2
-
Fix Version/s: 6.2.X EE, 7.0.0 DXP FP20, 7.0.3 CE GA4, 7.0.0 DXP SP4, 7.0.X EE, Master
-
Component/s: Sites Administration > Sites, ~[Archived] WCM > Analytics
-
Branch Version/s:7.0.x, 6.2.x
-
Backported to Branch:Committed
-
Story Points:1
-
Fix Priority:3
-
Git Pull Request:
- Set locale.prepend.friendly.url.style=2 in portal-ext.properties
- Start the portal and create a blank site and a page in it
- 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)
- 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"/>