Skip to content

fix: redirect mis-cased /MIPS paths to /MIPs - #79

Merged
p-shahi merged 1 commit into
mainfrom
fix/mips-uppercase-path-redirect
Aug 21, 2026
Merged

fix: redirect mis-cased /MIPS paths to /MIPs#79
p-shahi merged 1 commit into
mainfrom
fix/mips-uppercase-path-redirect

Conversation

@dak-agent

@dak-agent dak-agent Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

Summary

The link to MIP-12 shared in this tweet from Keone is broken:

  • Broken: https://mips.monad.xyz/MIPS/MIP-12 — uppercase S in MIPS
  • Works: https://mips.monad.xyz/MIPs/MIP-12 — lowercase s in MIPs

The site is served by GitHub Pages, which resolves paths case-sensitively, so /MIPS/... returns a 404 while /MIPs/... resolves.

Fix

Adds a small redirect handler to 404.html. When a request 404s because its leading collection segment is mis-cased, it normalises the segment to the canonical directory casing and redirects, preserving the rest of the path, the query string, and the hash:

  • /MIPS/*/MIPs/*
  • /MRCS/*/MRCs/*

This covers MIP-12 and the entire /MIPS/ (and /MRCS/) namespace generically — current and future proposals — rather than fixing one link at a time. Because GitHub Pages serves only static files (no server-side redirect rules), the redirect runs client-side on the 404 page via location.replace, so it does not add a browser history entry. Requests that already use the canonical casing are untouched, and a corrected path that still doesn't exist falls through to the normal 404 (no redirect loop).

Co-authored-by: Prithvi Shahi <50885601+p-shahi@users.noreply.github.com>
@dak-agent

dak-agent Bot commented Aug 20, 2026

Copy link
Copy Markdown
Contributor Author

Requesting review from @QEDK and @p-shahi 🙏

@p-shahi

p-shahi commented Aug 20, 2026

Copy link
Copy Markdown
Member

Closing as this has been a discussed internally per @QEDK

"absorbed the cost of future changes switching from MIPS -> MIPs early on so a lot of it is retrospective fitting that is not required"

@p-shahi p-shahi closed this Aug 20, 2026
@p-shahi
p-shahi deleted the fix/mips-uppercase-path-redirect branch August 20, 2026 14:46
@keone
keone restored the fix/mips-uppercase-path-redirect branch August 21, 2026 16:07
@keone keone reopened this Aug 21, 2026
@p-shahi
p-shahi merged commit 28481e0 into main Aug 21, 2026
6 checks passed
@p-shahi
p-shahi deleted the fix/mips-uppercase-path-redirect branch August 21, 2026 17:00
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.

2 participants