Environment
Adobe Experience Manager as a Cloud Service
Issue/Symptoms
When configuring the sitemap as per documentation with out-of-the-box settings, it is not formatted correctly (see attached image for reference).
When using local SDK:
Go to config manager (https://localhost:4502/system/console/configMgr) and search for Adobe AEM SEO - Page Tree Sitemap Generator (com.adobe.aem.wcm.seo.impl.sitemap.PageTreeSitemapGeneratorImpl).
Open the config and uncheck Add Language Alternates.
Note - If enabled, a page’s language copies will be added as language alternates to the URL entry (enableLanguageAlternates).
Save settings.
Retry the use case.
When using a cloud environment (non-SDK), set the above OSGI settings on your Git repository and deploy via a pipeline.