Page 1 of 1

Google sitemap xml issue

Posted: Thu Dec 08, 2011 1:21 pm
by STN

I don't know if this is on purpose or a programming mistake but in google sitemap generator file, the links generated with & query are replaced with & This breaks the links if you access it that way with & obviously.

$output .= '<loc>' . str_replace('&', '&', $this->url->link(...........

I don't know about sitemap xml files so is it on purpose or a bug ?. I would change them back to & if it is for search egnine because they crawl differently ?.


Re: Google sitemap xml issue

Posted: Fri Dec 09, 2011 2:15 am
by uksitebuilder
xml validation requires ampersands to be converted to their html equivalents