Sitemap Generator is ignoring canonical links
« on: August 09, 2016, 05:55:30 PM »
So in my sitemap genertor , i have clicked detect canonical links.
My website generates a canonical tag.
e.g. we have attribute navigation turned on. e.g
if the visited page is
[ External links are visible to forum administrators only ][pagenum=2*Pagesize=30*Sort=1*ava=0]
canonical tag will be always be (even for page 2, page 3, page 4)
[ External links are visible to forum administrators only ][Pagesize=200*Sort=1*ava=0]

It basically takes it to a view all page for that category. But its not working.
Its not putting the canonical tag in the sitemap.
Instead it puts something like this
[ External links are visible to forum administrators only ][Pagenam = 2 Pagesize=30*Sort=1*ava=0]

[ External links are visible to forum administrators only ][Pagenam = 2 Pagesize=30*Sort=2*ava=0]

etc.
So why isn't canonical working?
Re: Sitemap Generator is ignoring canonical links
« Reply #1 on: August 10, 2016, 08:21:42 AM »
Hello,

the part of the link after "#" is not a part of "URL" hence it's stripped before being added in sitemap.
Re: Sitemap Generator is ignoring canonical links
« Reply #2 on: August 10, 2016, 04:16:04 PM »
Why is it ignoring it. We need to have that url as canonical. Because it tells google that you can view all products for that link. Can it be fixed so it doesn't ignore #
Re: Sitemap Generator is ignoring canonical links
« Reply #3 on: August 11, 2016, 08:34:44 AM »
Hello,

the part after "#" is meaningful for the sitemap only in case if different content is served with different parameters after the "anchor". And that is only supported when page is served with ajax and according with "ajax crawling specs":
https://developers.google.com/webmasters/ajax-crawling/docs/learn-more