- Class
- C2 Recommended
- Weight
- 4
- Severity on fail
- major
- Applies to
Test this rule on a live site with the canonical tag checker. Free, no account needed.
Scope and evidence
Evaluated on page (P). The book marks this requirement DOCUMENTED RECOMMENDATION, SEARCH-ENGINE-SPECIFIC.
{target_problem} is "redirects to {final}" or "names {canonical} as canonical".
Fail conditions
Each condition has a stable code and a reason template. The evaluator fills the placeholders from observed values only; no sentence in a report is generated.
links_to_redirects{url} links to {n} URLs that redirect, for example {example} (redirects to {final}). Google recommends linking within your site to the canonical URL rather than a duplicate.
links_to_non_canonical{url} links to {n} URLs that name another URL as canonical, for example {example} (canonical: {canonical}). Google recommends linking within your site to the canonical URL rather than a duplicate.
hreflang_to_non_canonical{url} lists {n} hreflang alternates that are not canonical, for example {example} ({target_problem}). Google advises against specifying different URLs as canonical for the same page using different techniques.
The documented fix
Generate internal links and hreflang URLs from the same canonical-URL function the canonical tag uses.
Sources, quoted
These are the passages the rule rests on, stored once in the knowledge base and emitted exactly as written. A citation marked for specific conditions appears only on findings with those codes.
“When linking within your site, link to the canonical URL rather than a duplicate URL.”
[G-CANON] How to specify a canonical URL with rel="canonical" and other methods · General canonicalization best practices · last updated 2026-07-10 · for links_to_redirects, links_to_non_canonical
https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls“Don't specify different URLs as canonical for the same page using different canonicalization techniques”
[G-CANON] How to specify a canonical URL with rel="canonical" and other methods · General canonicalization best practices · last updated 2026-07-10 · for hreflang_to_non_canonical
https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls