Repository navigation
Close the redirect gaps the retired-tree redirects left - #481
Open
eugenia-scandit wants to merge 1 commit into
Open
eugenia-scandit wants to merge 1 commit into
eugenia-scandit wants to merge 1 commit into
Conversation
Old URLs that still 404 after the retired-tree redirects: - /stable/... and /<root version>/... (for example /8.6.1/...): the root docs carry no version prefix. A second postBuild pass writes redirect pages for every root route; path-for-path redirects are written first and win. - Hosted pages under a frozen patch (/7.6.5/hosted/..., /6.28.2/hosted/...) with no twin in the frozen tree: redirected to the current page. - Version prefixes the site never served (/6.18/..., /7.5/..., /5.0/sdks/...): the 404 page moves them to the tree serving that major, or to the root. Hosted paths go to the frozen tree's page when it has one, else the current one, checked against the app's routes so the target renders. - The API-reference fallback read the router's path, which drops ".html", so /7.6.6/.../vin.html went to /7.6/.../vin and 404ed again. It now reads the URL as requested. Fallback redirects keep the query string and anchor. API-reference paths are left out of the unserved-version rule, which would otherwise bounce between the two. Preview builds, whose base URL is not the root, skip the root redirect pass. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
2 tasks done
|
This branch has not been deployed
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.
Summary
Old URLs that still 404 after the retired-tree redirects:
/stable/...and/<root version>/...(for example/8.6.1/...): a second postBuild pass writes a redirect page for every root route. Path-for-path redirects are written first and win./7.6.5/hosted/...,/6.28.2/hosted/...) with no twin in the frozen tree now go to the current page./6.18/...,/7.5/...,/5.0/sdks/...): the 404 page moves them to the tree serving that major, or to the root. Hosted paths go to the frozen tree's page when it has one, else the current one, checked against the app's routes..html, so/7.6.6/.../vin.htmlwent to/7.6/.../vinand 404ed again. It now reads the URL as requested.Fallback redirects keep the query string and anchor. Preview builds skip the root redirect pass.
Test plan
npm run buildpasses/7.6.5/hosted/id-bolt/overview/→ current page;/7.6.4/hosted/express/...→ its 7.6.15 twin;/stable/sdks/linux/add-sdk/and/8.6.1/→ root/7.6.6/.../vin.html,/6.18/sdks/ios/core-concepts/,/5.0/sdks/ios/release-notes/🤖 Generated with Claude Code