XML Sitemaps Generator

Author Topic: Sitemap Generator is ignoring canonical links  (Read 1372 times)

jknauff

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Sitemap Generator is ignoring canonical links
« on: August 09, 2016, 04: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 admins 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 admins 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 admins only][Pagenam = 2 Pagesize=30*Sort=1*ava=0]

[external links are visible to admins only][Pagenam = 2 Pagesize=30*Sort=2*ava=0]

etc.
So why isn't canonical working?

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Sitemap Generator is ignoring canonical links
« Reply #1 on: August 10, 2016, 07: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.
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

jknauff

  • Registered Customer
  • Approved member
  • *
  • Posts: 2
Re: Sitemap Generator is ignoring canonical links
« Reply #2 on: August 10, 2016, 03: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 #

XML-Sitemaps Support

  • Administrator
  • Hero Member
  • *****
  • Posts: 10625
Re: Sitemap Generator is ignoring canonical links
« Reply #3 on: August 11, 2016, 07: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
Oleg Ignatiuk
www.xml-sitemaps.com
Send me a Private Message

For maximum exposure and traffic for your web site check out our additional SEO Services.

 

SMF 2.0.12 | SMF © 2014, Simple Machines
XHTML RSS WAP2