fix: add localized legacy redirects#100
Merged
Merged
Conversation
Contributor
Author
|
Land-ready verification:
Known gap: the active translation workflow has not yet regenerated the localized Codex supervision pages. This change intentionally keeps stale localized links valid until that generated update lands; it does not weaken the internal route audit. |
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.
What Problem This Solves
R2 Pages fails its internal route audit while localized plugin inventories still link a recently retired route such as
/ar/plugins/reference/codex-supervisor. English redirects exist, but the static builder did not emit locale-prefixed redirect files, so translation lag blocked every docs publish.Why This Change Was Made
Generate locale-prefixed variants for every configured redirect instead of weakening the route audit or restoring retired plugin pages. Redirects use the localized destination when that page exists and fall back to the canonical English destination until translation catches up. Existing authored pages remain untouched.
User Impact
Docs publishes can proceed while localized pages lag behind English source changes. Stale localized links continue to resolve, and users stay in their locale whenever the translated destination exists.
Evidence
make docs-check— passed; rendered 27,898 pages, prepared 78,652 R2 objects, indexed 21 languages, and passed the full internal route audit.DOCS_SITE_BASE_PATH=/docs npm run docs:build:shell— generated both base-path and locale-prefixed redirect variants./ar/plugins/reference/codex-supervisorfalls back to/plugins/codex-supervision, while/ar/sessionredirects to/ar/concepts/session.