Sitemap.xml not formatted correctly

Description

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).

Resolution

When using local SDK:

  1. 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).

  2. 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).

  3. Save settings.

  4. 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.

On this page