Skip to content

fix(site): redirect /docs/ to the latest release server-side - #186

Merged
JustMaris merged 2 commits into
mainfrom
fix/docs-latest-redirect
Oct 17, 2026
Merged

JustMaris merged 2 commits into
mainfrom
fix/docs-latest-redirect

Conversation

@JustMaris

Copy link
Copy Markdown
Member

Clicking Docs showed the version-picker page for a moment before a meta refresh jumped to the latest release, a flash that is also an accessibility problem (WCAG 2.2.1/3.2.5 discourage timed refreshes). Hugo now generates Cloudflare Pages' _redirects with /docs/ -> /docs/<latest>/ 302 from the same docs_versions data, so the redirect happens before any page renders. The meta refresh stays as a fallback for local hugo server. The version list stays reachable from the selector on every versioned page.

@codecov

codecov Bot commented Oct 17, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@JustMaris
JustMaris merged commit f8ac914 into main Oct 17, 2026
15 checks passed
@JustMaris
JustMaris deleted the fix/docs-latest-redirect branch October 17, 2026 14:46
@dnb-robot dnb-robot Bot mentioned this pull request Oct 17, 2026
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