sitemaps and prepend_www
|Reported by:||simonbun||Owned by:||adrian|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
The sitemaps module reads the current_site.domain value to determine the <loc> node. This yields <loc>http://mydomain.mytld/mypath/</loc>. I use the PREPEND_WWW setting however, and google does not validate my sitemap because it expects the submitted URL's to contain the 'www' subdomain.
May i suggest the trivial enhancement to take the PREPEND_WWW setting into account and prepending the 'www' to the current_site.domain value when necessary?
I'm not fully up to speed on the django core to patch it myself.
Change History (7)
comment:6 Changed 4 years ago by niksite
- Resolution invalid deleted
- Status changed from closed to reopened