Skip to content

[codex] Set up 404 redirect map#17

Draft
JFWooten4 wants to merge 1 commit into
mainfrom
values-404-redirect-map
Draft

[codex] Set up 404 redirect map#17
JFWooten4 wants to merge 1 commit into
mainfrom
values-404-redirect-map

Conversation

@JFWooten4
Copy link
Copy Markdown
Member

Summary

This PR updates the root 404.html redirect behavior to support a path-specific redirect map.

  • Adds a redirects map for arbitrary removed paths
  • Routes /about/values to https://github.com/blocktransfer/org-docs/blob/main/values.md
  • Keeps the existing GitHub commit-comment permalink as the default 404 fallback

Why

The deleted values page needs to redirect to its new canonical document location without changing the base behavior for other 404s.

Validation

  • Inspected the final 404.html diff
  • Confirmed the branch is based on current origin/main
  • No build or runtime tests were run; this is a static HTML script change

@netlify
Copy link
Copy Markdown

netlify Bot commented May 25, 2026

Deploy Preview for blocktransfer ready!

Name Link
🔨 Latest commit 29dfdc1
🔍 Latest deploy log https://app.netlify.com/projects/blocktransfer/deploys/6a14039cd8938600088cc105
😎 Deploy Preview https://deploy-preview-17--blocktransfer.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread 404.html
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"
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could expand to blog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant