fix: redirect /nox-protocol/ trailing slash to docs.noxprotocol.io#118
Merged
Conversation
The /nox-protocol/:path+ rule required at least one path segment, so /nox-protocol/ (with a trailing slash and empty path) matched neither it nor the bare /nox-protocol rule and returned a 404. Switch the source and destination to :path* so the trailing-slash case maps to the new domain root.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
The /nox-protocol/:path+ rule required at least one path segment, so /nox-protocol/ (trailing slash, empty path) matched no redirect rule and returned a 404. The site had no trailing-slash normalization, so any /nox-protocol/.../ URL 404'd as well. Set trailingSlash: false so Vercel strips trailing slashes (308) before evaluating redirects, and switch the source/destination to :path* for consistency. /nox-protocol/ and deeper trailing-slash paths now redirect to docs.noxprotocol.io.
64ix
approved these changes
May 29, 2026
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.
Problème
https://docs.iex.ec/nox-protocol/(avec slash final) renvoie un 404.La règle
/nox-protocol/:path+exige au moins un segment de chemin. Avec un slash final et un path vide,/nox-protocol/ne matche ni cette règle ni la règle/nox-protocol(sans slash) → 404.Correctif
:path+→:path*(source et destination). Le cas slash-final mappe désormais vers la racine du nouveau domaine./nox-protocol/getting-started/welcome/nox-protocol/nox-protocol/Test
curl -sIL https://<preview>/nox-protocol/→30x→https://docs.noxprotocol.io/