Hiya, 

Are you using i18n + contrib.sitemaps? 

There's a PR here to add alternate hreflang links to sitemaps: 

https://github.com/django/django/pull/11937

Google docs on the subject: 
https://support.google.com/webmasters/answer/189077

The idea is that if Sitemap.i18n is True, each URL will have pointers to 
the equivalent versions in other languages: 

This kind of thing: 

 <url>
    <loc>http://www.example.com/english/page.html</loc>
    <xhtml:link 
               rel="alternate"
               hreflang="de"
               href="http://www.example.com/deutsch/page.html"/>
    <xhtml:link 
               rel="alternate"
               hreflang="de-ch"
               href="http://www.example.com/schweiz-deutsch/page.html"/>
    <xhtml:link 
               rel="alternate"
               hreflang="en"
               href="http://www.example.com/english/page.html"/>
</url>

The PR looks OK, but I'm wondering if a few people could throw it through 
it's paces to see what edge cases come up? 

If you can: 

    pip install -e 
git+https://github.com/django/django@refs/pull/11937/head#egg=Django

* Does your `Sitemap.i18n = True` still render correctly?
* Are there any issue if you set (the new) `Sitemap.x_default = True`

Docs changes: 
https://github.com/django/django/pull/11937/files#diff-083e9ed1a53be195444ef4656ddc6d3fR251-R283

Thanks for looking if you can and are using this.

Kind Regards,

Carlton


-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/ce2393ea-6546-4fe7-944a-c48c69f9baf6%40googlegroups.com.

Reply via email to