Skip to content

docs(mkdocs): drop /latest/ from site_url so canonical URLs resolve - #161

Merged
rennf93 merged 1 commit into
masterfrom
fix/docs-canonical-url
Oct 14, 2026
Merged

rennf93 merged 1 commit into
masterfrom
fix/docs-canonical-url

Conversation

@rennf93

@rennf93 rennf93 commented Oct 14, 2026

Copy link
Copy Markdown
Member

Closes #160

mike joins the deployed version onto site_url. With site_url ending in /latest/, every page got a canonical like /latest/<version>/, which returns 404. With site_url at the site root, the canonical becomes https://guard-core.github.io/fastapi-guard/<version>/, which exists.

I checked this with a local mike deploy 4.3.3 build of guard-core: the built pages carry <link rel="canonical" href="https://guard-core.github.io/guard-core/4.3.3/">, and that URL returns 200.

@github-actions github-actions Bot added the documentation Docs, README, CHANGELOG, governance files label Oct 14, 2026
@rennf93
rennf93 merged commit e0bd96d into master Oct 14, 2026
5 checks passed
@rennf93
rennf93 deleted the fix/docs-canonical-url branch October 14, 2026 02:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Docs, README, CHANGELOG, governance files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs canonical URLs point to pages that return 404

1 participant