Sitemap rules not respected for multilingual documentations
Vultik opened this issue · 1 comments
Vultik commented
Hi,
According to Google documentation, each language variation should be put with <xhtml:link>
including the default language.
Current Sitemap:
<url>
<loc>https://super_doc.com/fr/index.html</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://super_doc.com/en/index.html" />
</url>
Expected Sitemap:
<url>
<loc>https://super_doc.com/fr/index.html</loc>
<xhtml:link rel="alternate" hreflang="en" href="https://super_doc.com/en/index.html" />
<xhtml:link rel="alternate" hreflang="fr" href="https://super_doc.com/fr/index.html" />
</url>
https://developers.google.com/search/docs/advanced/crawling/localized-versions#sitemap
jdillard commented
Thanks for catching this! Sorry it fell through the cracks somehow.