﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
22231	Subdomain support in Sitemaps	anilashanbhag@…	nobody	"Google currently supports adding subdomain urls to sitemaps. 
For example example.com/sitemap.xml can contains links to sub1.example.com and sub2.example.com.

Reference: https://productforums.google.com/forum/?hl=en#!msg/webmasters/w4gMRNFHMlA/24pUYqi69mkJ

The current django sitemaps framework cannot handle without having to override the {{{ get_urls }}} function. One possible easy fix which I am using currently is:

{{{
for item in self.paginator.page(page).object_list:
    loc = self.__get('location', item)
    if not '://' in loc:
        loc = ""%s://%s%s"" % (protocol, domain, loc)
}}}

instead of 

{{{
for item in self.paginator.page(page).object_list:
    loc = ""%s://%s%s"" % (protocol, domain, self.__get('location', item))
}}}

This basically checks if the past returned by location is an absolute path. If yes, it does not append the root domain to it."	New feature	closed	contrib.sitemaps	dev	Normal	wontfix		pirosb3	Unreviewed	0	0	0	0	1	0
