[codex] Set up 404 redirect map#17
Draft
JFWooten4 wants to merge 1 commit into
Draft
Conversation
Co-authored-by: Codex <[email protected]>
✅ Deploy Preview for blocktransfer ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
JFWooten4
commented
May 25, 2026
| const q = new URL(window.location.href); | ||
| const redirectTo = "https://github.com/blocktransfer/website/commit/fc9fdaf32362d655185a5815d38aeba29e0b1a4f#commitcomment-165082980"; | ||
| const redirects = { | ||
| "/about/values": "https://github.com/blocktransfer/org-docs/blob/main/values.md" |
Member
Author
There was a problem hiding this comment.
This could expand to blog
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
This PR updates the root
404.htmlredirect behavior to support a path-specific redirect map.redirectsmap for arbitrary removed paths/about/valuestohttps://github.com/blocktransfer/org-docs/blob/main/values.mdWhy
The deleted values page needs to redirect to its new canonical document location without changing the base behavior for other 404s.
Validation
404.htmldifforigin/main