Repository navigation
Add a redirect map for removed and renamed pages - #151
Open
DavidLambauer wants to merge 1 commit into
Open
DavidLambauer wants to merge 1 commit into
DavidLambauer wants to merge 1 commit into
Conversation
The file name of a page is its URL on the website, so a page that is removed or renamed leaves a dead URL behind. redirects.yml lists such pages with the page that covers the topic now, and the website answers a request for the old page with a redirect to the new one. The map starts with the 26 pages that the open content pull requests merge into other pages. An entry has no effect while a page with the old name still exists, so the map can be merged before them. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This was referenced Nov 30, 2026
Open
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.
#108 to #112 merge 28 duplicate pages into other pages. The file name of a page is its URL, so those URLs would stop working. This adds
redirects.yml, which the website reads to send a request for an old page to the page that covers the topic now. The website side is mage-os/devdocs-website#74.case-studies-of-problem-solving-in-magento-2andcollection-of-real-world-examples-and-step-by-step-tutorials, which is an empty page.An entry has no effect while a page with the old name exists, so this can be merged before or after #108 to #112, and before the website change is deployed.
Tested
On a local copy of the website with all open pull requests merged: each of the 26 old URLs answers with a 301 and its target returns 200. With only this change on
main, all 28 old pages are still served.Merge order and notes for reviewers: #115.
🤖 Generated with Claude Code