Repository navigation
Send one-off legacy URLs to their current pages - #483
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
Redirect pages: - The system-requirements redirect had a relative target, which resolved against the old URL: /data-capture-sdk/ios/requirements.html/ went to .../requirements.html/system-requirements/ and on to a 404. Now absolute. - /sdks/<framework>/migration-guide -> migrate-7-to-8, for every framework that has the guide. - The pre-v7 Cordova barcode get-started and Web symbologies URLs, and the old Web SDK changelog, go to their current pages. The 404 page, by URL shape: - 5.x platform pages (/5.<minor>/<platform>/, /stable/<platform>/) go to that platform's 5-to-6 migration guide; Xamarin to the Xamarin section of the 7-to-8 guide. /stable/c_api/ is the live C API reference and is left alone. - data-capture-sdk/react/ -> react-native/, parser/dlid.html -> formats.html, with or without a version prefix. - Mixed-case paths go to the lower-case path. The 404 page now resolves one target from an ordered list of rules, and switches in place when the app renders the target, or loads it in full when it does not (API reference, redirect pages). An in-app link to a page the app does not have asks the server first, once per path, so static redirect pages win over guesses from the URL's shape. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
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.
Stacked on #481 — merge that first (this PR's base is its branch).
Summary
Redirect pages
/data-capture-sdk/ios/requirements.html/went to.../requirements.html/system-requirements/and on to a 404. Now absolute./sdks/<framework>/migration-guide→migrate-7-to-8, for every framework that has the guide.The 404 page, by URL shape
/5.<minor>/<platform>/,/stable/<platform>/) → that platform's 5-to-6 migration guide; Xamarin → the Xamarin section of the 7-to-8 guide./stable/c_api/is the live C API reference and is left alone.data-capture-sdk/react/→react-native/,parser/dlid.html→formats.html, with or without a version prefix.The 404 page now resolves one target from an ordered list of rules. It switches in place when the app renders the target, and loads it in full when it doesn't (API reference, redirect pages). An in-app link to a page the app doesn't have asks the server first, once per path, so static redirect pages win over guesses from the URL's shape.
Test plan
npm run buildpasses; redirect pages generated for all 10migration-guideURLs🤖 Generated with Claude Code