What AuditX checks
The scan reads the hreflang link elements in the head of the page you scanned and opens up to the first 5 alternates with a normal request. For each one it reads the canonical tag, if there is one, and compares it with the address named in the hreflang tag. A trailing slash is ignored in the comparison. An alternate that redirected to another address during the visit is not scored, because the page it landed on is not the page the tag names, and the message lists it as a note. The check is an info note, which does not lower the score, when the page has no hreflang tags. It is an info note marked as not measured when no alternate could be fetched, or when every alternate redirected. It warns when at least one alternate has a canonical tag that points to a different address than itself, and names up to 3. It passes when every alternate that could be compared points to itself or has no canonical tag. An alternate with no canonical tag is not treated as a problem by this check. Alternates that answered 401, 403, 429 or 451, or could not be fetched, are left out. Only the tags in the head of this one page are read, and hreflang that is only in the sitemap is not read.
Why it matters
Google Search Central says that when you use hreflang, each language version should have its own canonical address, and that the hreflang tags should point at those canonical addresses. A mismatch gives Google two conflicting signals.
Google Search Central explains that a canonical tag marks a page as a duplicate of another address. If a language version names a different page as canonical, Google may leave the language version out of the results.
How to fix it
- Open each alternate named in the report and look for the rel="canonical" line in the page source.
- Make the canonical of each language version point at that same page, in that same language. Do not point the Dutch page at the English one.
- If the canonical is right and the hreflang address is wrong, change the hreflang tag so it names the canonical address.
- Check the setting in your CMS or translation plugin that controls the canonical tag on translated pages, because one setting often changes every page.
<!-- on https://www.example.com/nl/ -->
<link rel="canonical" href="https://www.example.com/nl/" />
<link rel="alternate" hreflang="nl" href="https://www.example.com/nl/" />
Does your site pass this check? A free scan runs it with every other check and shows the result in about a minute.
Scan my siteSources
- Google Search Central: Tell Google about localized versions of your page
- Google Search Central: How to specify a canonical URL