Skip to content

Fix docs canonical domain (www) + probe trailing-slash override#420

Merged
Dgiordano33 merged 2 commits into
mainfrom
docs/canonical-url
Jul 6, 2026
Merged

Fix docs canonical domain (www) + probe trailing-slash override#420
Dgiordano33 merged 2 commits into
mainfrom
docs/canonical-url

Conversation

@Dgiordano33

Copy link
Copy Markdown
Collaborator

What

Two SEO/canonical changes for the docs, following the P4 trailing-slash investigation.

1. Global canonical domain fix (docs.json) — the real change

Adds seo.metatags.canonical: "https://www.checklyhq.com". Live docs pages currently emit <link rel="canonical" href="https://checklyhq.com/docs/...">bare domain, which 301s to www, so the canonical is non-self-referential. This sets the canonical base to the www apex for every page in one line (Mintlify appends each page's path).

2. Trailing-slash probe (cli/overview.mdx) — temporary, review-only

Mintlify appends paths without a trailing slash, and has no global trailingSlash option, so the canonical will be www + no-slash (a single 308 to the served .../overview/). This commit adds a per-page canonical: frontmatter with an explicit trailing slash to test whether Mintlify emits it verbatim or normalizes it away.

How to verify on the preview deploy

Once the Mintlify preview builds, check the rendered <link rel="canonical">:

  1. Any page (e.g. /docs/detect/overview/) → should now be https://www.checklyhq.com/... (www, not bare). ✅ confirms the global fix.
  2. /docs/cli/overview/ → does the tag show a trailing slash (.../cli/overview/) or not?
    • Slash preserved → per-page override works; we can script it across all pages (deriving each canonical from its file path) if we decide the 1-hop is worth closing.
    • Slash stripped → Mintlify normalizes it; drop commit 2 and accept www + no-slash (Google already indexes the slash form regardless).

Merge guidance

  • Commit 1 (docs.json) is safe to keep regardless.
  • Commit 2 (cli/overview.mdx) is a probe — keep only if the slash survives and we choose to pursue per-page canonicals; otherwise drop it before merge.

🤖 Generated with Claude Code

Dgiordano33 and others added 2 commits July 6, 2026 14:14
Add seo.metatags.canonical so Mintlify emits canonical URLs on the www
apex. Live pages currently emit `https://checklyhq.com/docs/...` (bare
domain), which 301s to www — a non-self-referential canonical. This
fixes the domain for every docs page in one line.

Note: Mintlify appends each page's path without a trailing slash, so
the canonical becomes www + no-slash (still a single 308 to the served
trailing-slash URL). The trailing-slash question is probed separately.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Temporary probe: verify whether Mintlify emits a per-page `canonical`
override verbatim (including the trailing slash) or normalizes it to
no-slash. On the preview deploy, inspect the rendered
<link rel="canonical"> for /docs/cli/overview/ — if it keeps the slash,
we can script this across all pages; if stripped, drop this commit.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Dgiordano33 Dgiordano33 merged commit 6998c7f into main Jul 6, 2026
4 checks passed
@mintlify

mintlify Bot commented Jul 6, 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 6, 2026, 6:39 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

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