Skip to content

Fix docs home canonical + add home to sitemap#433

Merged
Dgiordano33 merged 2 commits into
mainfrom
docs/fix-home-canonical
Jul 8, 2026
Merged

Fix docs home canonical + add home to sitemap#433
Dgiordano33 merged 2 commits into
mainfrom
docs/fix-home-canonical

Conversation

@Dgiordano33

Copy link
Copy Markdown
Collaborator

The docs home (index.mdx, served at /docs/) was the one page missed by the canonical rollout, because it is not a docs.json nav entry — so it fell back to the global base and emitted <link rel=\"canonical\" href=\"https://www.checklyhq.com/docs\"> (no trailing slash), mismatching the served /docs/ URL. An SEO extension flagged it as "canonicalised away / not indexable."

Fixes

  • index.mdx: add canonical: 'https://www.checklyhq.com/docs/' (self-referencing).
  • .github/scripts/generate-sitemap.mjs: include the home URL (/docs/) — it was absent from the sitemap since it is not a nav slug. Sitemap is now 570 URLs.

Notes

  • The X-Robots-Tag: noindex an extension may show on the home is NOT present on the live www response (verified: no robots header on www.checklyhq.com/docs/ or the bare-domain 301). That reading is stale/preview; the real issue was only the canonical mismatch, which this fixes.
  • Verified: valid XML, drift check clean, canonical now self-references /docs/.

🤖 Generated with Claude Code

The root index.mdx (served at /docs/) is not a docs.json nav page, so the
per-page canonical rollout skipped it and it fell back to the global base —
emitting <link rel="canonical" href="https://www.checklyhq.com/docs"> (no
trailing slash), which mismatches the served /docs/ URL ("canonicalised away").

- index.mdx: add canonical 'https://www.checklyhq.com/docs/' (self-referencing).
- generate-sitemap.mjs: include the home (BASE) URL — it was missing from the
  sitemap because it isn't a nav slug. Now 570 URLs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
checkly-422f444a 🟢 Ready View Preview Jul 8, 2026, 5:54 PM

Sweep for .mdx pages Mintlify serves that aren't in docs.json navigation —
they were skipped by the canonical rollout and fell back to the global
no-slash base (same bug as the home). 34 served orphans (best-practices,
examples, *-configuration, section overviews, changelog, etc.) now declare
a self-referencing trailing-slash canonical. The one hidden page
(tcp-monitors/use-cases, hidden: true) is intentionally skipped.

Not added to the sitemap (kept to nav pages + home); these are secondary
pages reachable via links/redirects, not primary nav entries.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Dgiordano33 Dgiordano33 merged commit 01c07cd into main Jul 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant