canonical elsewhere

critical warning info canonical-elsewhere Indexing and reachability

The page hands its accumulated weight to a different URL and drops out of the index itself. On a generated site this is nearly always one wrong line in the template, repeated across every page it produced. A copy — a print version under the page, the same name in an older version, the same text at another address — pointed at an open page of its language is only a note. A page with another name and almost no text in common is not a copy: one is a warning, several pointed at the same page are critical (the template took the address from the wrong variable), and the page keeps its other findings. A canonical naming the same page on another scheme or host (`http://`, `www.`) is a warning and leaves the page out of the sitemap; it is compared with the address most pages use in their own canonical, not with `--site`, so a site written wholly on another address gets one note instead.

What indexgap reports

The finding reads:

critical  canonical-elsewhere  a copy of …: the canonical points there, and that page is open in the build — as it should be if this is a variant (a print version, a second address)

How to fix it

Check the template: the canonical must point at the page itself. Right now it hands its weight to another page and drops out of the index.

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 indexing and reachability

All checks · Indexing and reachability