Skip to content

fix: normalize control characters in relative URLs - #15422

Merged
brophdawg11 merged 1 commit into
v7from
brophdawg11/codex-v7-normalize-url-control-characters
Aug 25, 2026
Merged

brophdawg11 merged 1 commit into
v7from
brophdawg11/codex-v7-normalize-url-control-characters

Conversation

@brophdawg11

Copy link
Copy Markdown
Contributor

Backport of #15416 to v7.

What does this change?

Improves handling of special characters in relative navigation paths.

Relative URLs are now normalized consistently across links, redirects, browser history, server rendering, and RSC navigation while preserving absolute URL behavior.

Testing

  • Link href tests
  • Browser history tests
  • Redirect tests
  • react-router build and typecheck

@github-actions

Copy link
Copy Markdown
Contributor

Preview Build Available

Preview builds have been created for this PR. You can install react-router using:

pnpm install "remix-run/react-router#preview/pr-15422&path:packages/react-router"

And/or install other packages via:

pnpm install "remix-run/react-router#preview/pr-15422&path:packages/react-router-dev"
pnpm install "remix-run/react-router#preview/pr-15422&path:packages/react-router-express"
pnpm install "remix-run/react-router#preview/pr-15422&path:packages/react-router-node"
pnpm install "remix-run/react-router#preview/pr-15422&path:packages/react-router-serve"

These preview builds will be updated automatically as you push new commits.

@brophdawg11 brophdawg11 changed the title Backport relative URL normalization to v7 fix: normalize control characters in relative URLs Aug 20, 2026
@brophdawg11
brophdawg11 force-pushed the brophdawg11/codex-v7-normalize-url-control-characters branch from dd4dcba to 0782011 Compare August 20, 2026 20:30
Assisted-By: devx/597728f0-1b3f-4153-b929-18dbff6cd683
@brophdawg11
brophdawg11 force-pushed the brophdawg11/codex-v7-normalize-url-control-characters branch from 0782011 to 9a2fa76 Compare August 24, 2026 18:57
@brophdawg11
brophdawg11 merged commit d1a4b1d into v7 Aug 25, 2026
7 of 8 checks passed
@brophdawg11
brophdawg11 deleted the brophdawg11/codex-v7-normalize-url-control-characters branch August 25, 2026 20:11
@github-actions

Copy link
Copy Markdown
Contributor

The preview branch preview/pr-15422 has been deleted now that this PR is merged/closed.

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