SEO.Sitemaps icon indicating copy to clipboard operation
SEO.Sitemaps copied to clipboard

Alternate language version loses styling

Open meisem opened this issue 6 years ago • 1 comments

When turning on include alternate language pages, the xml sitemap loses it's styling.

Example: https://www.alerisplastikkirurgi.se/Sitemap.xml (without alternate) https://www.alerisplus.se/Sitemap.xml (with alternate)

meisem avatar Nov 22 '18 13:11 meisem

Googling shows many similar issues related to sitemap + xhtml:lang attributes, for example here https://stackoverflow.com/questions/51923627/xml-sitemap-rendering-as-plain-text or here https://support.google.com/chrome/thread/10921150?hl=en

On a first sight, that's a browsers' "issue" as they treat that xml as XHTML document based on xmlns, so they render that as HTML, rather than preview as "styled" XML.

There's advise in a SO question above to use another xmlns, with a warning google won't use such sitemap.

If you try pretty old browser (I used IE11 with simulation of IE8), you can still see "styled" XML.

lanorkin avatar Sep 18 '19 16:09 lanorkin