hreflang conflict

warning hreflang-conflict hreflang and language versions

Every code in a cluster names one version, and every version has one code. Two addresses under the same code (or two x-default links), or a page that calls itself `en` while its siblings call it `fr`, is a contradiction, and search engines may ignore the annotations involved.

What indexgap reports

The finding reads:

warning  hreflang-conflict  the code “…” is declared for several addresses (…) — one code can have only one version, and search engines discard contradictory markup

How to fix it

Keep one address per code, and call each version by the same code on every page of the cluster.

How it behaves at scale

Collapsed when it fires template-wide. If it appears on 90% or more of the pages — or of one language version — of a site with at least 20 pages, it is a property of the template and is reported once, with the count, instead of once per page.

Finding it

pipx install indexgap
cd your-project
indexgap init
indexgap check

Then indexgap brief turns every finding on this page into a work order in indexgap-briefs/, with the thresholds the result has to satisfy and the command to check it.

Related checks in hreflang and language versions

All checks · hreflang and language versions