Skip to content

fix: redirect /nox-protocol/ trailing slash to docs.noxprotocol.io#118

Merged
edenbd1 merged 2 commits into
mainfrom
fix/nox-protocol-trailing-slash-404
May 29, 2026
Merged

fix: redirect /nox-protocol/ trailing slash to docs.noxprotocol.io#118
edenbd1 merged 2 commits into
mainfrom
fix/nox-protocol-trailing-slash-404

Conversation

@edenbd1
Copy link
Copy Markdown
Contributor

@edenbd1 edenbd1 commented May 29, 2026

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.

URL Avant Après
/nox-protocol/getting-started/welcome 308 ✓ 308 ✓
/nox-protocol 308 ✓ 308 ✓
/nox-protocol/ 404 308 → docs.noxprotocol.io/ ✓

Test

  • curl -sIL https://<preview>/nox-protocol/30xhttps://docs.noxprotocol.io/

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.
@vercel
Copy link
Copy Markdown

vercel Bot commented May 29, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
documentation Ready Ready Preview, Comment May 29, 2026 8:24am

Request Review

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.
@edenbd1 edenbd1 merged commit e5e598c into main May 29, 2026
7 checks passed
@edenbd1 edenbd1 deleted the fix/nox-protocol-trailing-slash-404 branch May 29, 2026 09:27
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