Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sitemap error on multi-language #28

Closed
gs-chofmann opened this issue May 12, 2024 · 3 comments
Closed

sitemap error on multi-language #28

gs-chofmann opened this issue May 12, 2024 · 3 comments

Comments

@gs-chofmann
Copy link
Contributor

gs-chofmann commented May 12, 2024

On Multilanguage Websites the sitemap.xml is broken

image

Fix:

urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml"

instead of

urlset xmlns='http://www.sitemaps.org/schemas/sitemap/0.9'

@BernhardBaumrock
Copy link
Member

Hey @gs-chofmann thx, could you please provide more details and let me know how I can reproduce this?

@gs-chofmann
Copy link
Contributor Author

You should be able to reproduce it on every installation with more than one language.

Just install the plugin on a multi language installation and open up the sitemap.xml on Google Chrome. Then the error occurs as mentioned in the screenshot above.

It is because you implement the xhtml:link for the href lang tags - but the xhtml:link has no specification.

For more see https://stackoverflow.com/questions/39450542/namespace-prefix-xhtml-on-link-is-not-defined-sitemap-xml

@BernhardBaumrock
Copy link
Member

Thx, I've added your suggested fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants