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 format #16579

Closed
sayyad84 opened this issue Aug 19, 2024 · 8 comments
Closed

Sitemap format #16579

sayyad84 opened this issue Aug 19, 2024 · 8 comments

Comments

@sayyad84
Copy link

Hi,
The sitemap generated by the software needs to be changed, especially for multilingual sites, and Google suggests the following format for it. I would be grateful if you would make the necessary changes in the software to produce a site map in this format:
https://developers.google.com/search/docs/specialty/international/localized-versions

@Piedone
Copy link
Member

Piedone commented Aug 20, 2024

Please tell in detail what kind of changes the current sitemap generation logic should have in your opinion.

@sayyad84
Copy link
Author

sayyad84 commented Aug 21, 2024

Something similar to Google's offer for multilanguage sites in above link:
image

@gvkries
Copy link
Contributor

gvkries commented Aug 21, 2024

That is already supported, you just need to enable the OrchardCore.ContentLocalization.Sitemaps feature.

@sayyad84
Copy link
Author

There is a sitemap, but it is not the same as the one suggested by Google for multilingual sites.
image

@gvkries
Copy link
Contributor

gvkries commented Aug 21, 2024

I don't know why, but the browser is just not formatting the XML document correctly. Look at the actual HTTP response, that looks correct.

@sayyad84
Copy link
Author

But the sitemap is displayed correctly in other websites. Meanwhile, most of my emphasis in this request is for the multilingual section, where the URLs are inserted as follows:
<xhtml:link rel="alternate" hreflang="de" href="https://www.example.de/deutsch/page.html"/>

@gvkries
Copy link
Contributor

gvkries commented Aug 21, 2024

That's correct on your site too:
image

@sayyad84 sayyad84 reopened this Aug 21, 2024
@sayyad84
Copy link
Author

Thank you for your follow up

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

No branches or pull requests

3 participants