Fix canonical base to include /docs mount path#421
Open
Dgiordano33 wants to merge 1 commit into
Open
Conversation
seo.metatags.canonical was set to the bare origin (https://www.checklyhq.com), which made Mintlify emit canonicals WITHOUT the /docs mount — e.g. https://www.checklyhq.com/detect/overview instead of .../docs/detect/overview (the former only resolves via a redirect, so canonicals were non-self-referential). Include /docs in the base. Verified on prod that Mintlify appends the internal page path to this base, and that per-page `canonical:` frontmatter overrides are emitted verbatim (e.g. cli/overview keeps its trailing slash). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hotfix for #420. The global
seo.metatags.canonicalwas set to the bare originhttps://www.checklyhq.com, so Mintlify emitted canonicals without the/docsmount (e.g.https://www.checklyhq.com/detect/overviewinstead of.../docs/detect/overview) — non-self-referential on every non-overridden page.This sets the base to
https://www.checklyhq.com/docsso canonicals resolve to the real served path.Verified on prod after #420:
canonical:overrides emit verbatim —/docs/cli/overview/→https://www.checklyhq.com/docs/cli/overview/(www + /docs + trailing slash).After deploy, non-overridden pages should read
https://www.checklyhq.com/docs/<path>(www + /docs, no trailing slash — a single 308 to the served slash URL).🤖 Generated with Claude Code