A canonical that names the page itself, but in a URL form its file does not have: `/about/` for `about.html`, `/a.html` or `/a` for `a/index.html`. The page keeps that address — it goes into the sitemap and hreflang, and links written the same way are not flagged — so the one place to see the mismatch is here. On GitHub Pages, S3 and nginx `/about/` for a flat file and `/a.html` for a folder page are a 404; `/a` for a folder page is a redirect to `/a/` on GitHub Pages, Netlify, Cloudflare Pages, S3 and nginx, so the canonical and every sitemap entry point at a redirect. Usually it is the generator's trailingSlash setting disagreeing with its output format. `cleanUrls` / `trailingSlash` in vercel.json, a redirect rule that catches the address, `cleanUrls` / `trailingSlash` in firebase.json, and builds served by an app server (`.next/server/app`) silence it; a vercel.json or staticwebapp.config.json silences the `/a` case, since those hosts serve a folder page without the slash.
The finding reads:
warning canonical-form the canonical declares …, but the page is laid out as …: the build does not serve that form, and GitHub Pages, S3 and nginx answer … with a 404. The same address goes into the sitemap and hreflang
Write the canonical in the form the page has in the build: /about/ for about/index.html, /about.html or /about for about.html — usually this is the generator's trailingSlash setting. If the host serves that form itself — cleanUrls or trailingSlash in vercel.json, a rule in _redirects or netlify.toml — the finding goes away.
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.
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.