Canonicalized URL in XML Sitemaps
This means that the URL in question has a canonical element that points to another URL, yet is included in an XML Sitemap.
Why is this important?
Your XML Sitemap should only contain URLs you wish for search engines to index. If a URL is canonicalized, this is an explicit statement to search engines that you do NOT wish for the URL to be indexed, and instead wish for the canonical URL to consolidate indexing signals.
As such, including a canonicalized URL in a sitemap provides conflicting information to search engines, and may impact what they consider is the canonical URL, which may in turn mean that unintended URLs get indexed.
What does the Hint check?
This Hint will trigger for any internal URL which has a canonical that is not self-referential, and is included in one of the submitted XML Sitemaps.
Examples that trigger this Hint:
Consider the URL: https://example.com/page-a, which is included in a submitted XML Sitemap.
The Hint would trigger for this URL if it had a canonical that pointed at any other URL;
A canonical tag in the <head> which pointed at another internal URL:
OR a canonical tag in the <head> which pointed at an external URL:
OR a canonical tag in the HTTP header which pointed at any other URL:
How do you resolve this issue?
The current setup is technically incorrect, and may cause indexing issues.
To resolve it, you would need to do one of the following:
- If the URL should be canonicalized, then remove it from all XML Sitemaps. Once removed, resubmit the sitemaps on Google Search Console.
- If the URL should not be canonicalized, remove the canonical tag.