fix: redirect mis-cased /MIPS paths to /MIPs - #79
Merged
Conversation
Co-authored-by: Prithvi Shahi <50885601+p-shahi@users.noreply.github.com>
dak-agent
Bot
requested review from
Baltoli,
QEDK,
keone,
kjcamann and
pdobacz
as code owners
August 20, 2026 03:07
Contributor
Author
p-shahi
approved these changes
Aug 20, 2026
Member
|
Closing as this has been a discussed internally per @QEDK
|
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
The link to MIP-12 shared in this tweet from Keone is broken:
https://mips.monad.xyz/MIPS/MIP-12— uppercaseSinMIPShttps://mips.monad.xyz/MIPs/MIP-12— lowercasesinMIPsThe 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 vialocation.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).