aem-core-wcm-components
aem-core-wcm-components copied to clipboard
Core Components alternate language inside the head meta not working
Bug Report
Current Behavior My current sites structure is the below one: /content/project/language-masters/it <-- master /content/project/it/it <-- livecopy /content/project/us/en <-- livecopy
I'am extending all the pages from apps/core/wcm/components/page/v2/page and based upon the head.links.html
I am expecting to see the alternate pages but instead it's returning only the master page url:
debugging the method com.adobe.cq.wcm.core.components.internal.models.v2.PageImpl#getAlternateLanguageLinks, the interface method com.adobe.aem.wcm.seo.SeoTags#getAlternateLanguages returns only the master page url.
Debugging deeply the method com.adobe.aem.wcm.seo.SeoTags#getAlternateLanguages is not possible. Which is the logic to get the altenates on com.adobe.aem.wcm.seo.SeoTags#getAlternateLanguages? the code for reverse engineering is bot available.
Expected behavior/code Should return map of alternate language links about each livecopy
Environment
- AEM version and patch level: 2023.1.10675.20230113T110236Z-220900
- Core Components version: 2.22.6
- JRE version: 1.0.18+10
Additional context / Screenshots