0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/react-router
Collin Dillinger 9809a0619d
fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment (#7695)
* fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment

Replace sanitizePathSegment (which stripped control characters) with a
re-encode step that keeps WHATWG path percent-encode set characters and
control characters in their encoded form after decodeURI.

This preserves the existing decodeURI-based approach which correctly
handles multi-byte UTF-8 sequences, while fixing the mismatch between
the original request URL and the router's internal representation that
caused infinite 307 redirect loops on paths containing these characters.

Fixes #7587.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* ci: apply automated fixes

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Flo <me@florianpellet.com>
History 2026-06-30 23:27:21 +02:00
..
basepath-file-based fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic-esbuild-file-based chore: update zod to v4.4.3 (#7441) 2026-05-20 08:41:45 +02:00
basic-file-based fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment (#7695) 2026-06-30 23:27:21 +02:00
basic-file-based-code-splitting fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic-react-query fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic-react-query-file-based fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic-scroll-restoration fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic-virtual-file-based fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
basic-virtual-named-export-config-file-based fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
escaped-special-strings fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
generator-cli-only fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
i18n-paraglide fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
js-only-file-based fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
match-params fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
rspack-basic-file-based feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
rspack-basic-virtual-named-export-config-file-based feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
scroll-restoration-sandbox-vite fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
sentry-integration fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
view-transitions fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00