0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/react-start
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
..
basic fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment (#7695) 2026-06-30 23:27:21 +02:00
basic-auth rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
basic-cloudflare Reduce postinstall wrangler noise (#7696) 2026-06-25 23:29:10 +02:00
basic-react-query rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
basic-tsr-config rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
clerk-basic rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
csp fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
css-inline feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
css-modules fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
custom-basepath rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
custom-server-rsbuild feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
deferred-hydration feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
dev-ssr-styles fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
early-hints fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
flamegraph-bench fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
hmr feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
i18n-paraglide rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
import-protection feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
import-protection-custom-config fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
query-integration fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
rsc feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
rsc-deferred-hydration fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
rsc-query rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
rsc-rsbuild fix(start-rsbuild): compile node_modules for RSC directives (#7540) 2026-06-04 13:34:00 +02:00
scroll-restoration fix(examples): make isRoot check work (#7547) 2026-06-04 22:11:30 +02:00
selective-ssr fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
serialization-adapters rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
server-functions feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
server-functions-global-middleware rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
server-routes fix(examples): make isRoot check work (#7547) 2026-06-04 22:11:30 +02:00
server-routes-global-middleware fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
spa-mode fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
split-base-and-basepath fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
start-manifest fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
static-server-functions fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
streaming-ssr rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
transform-asset-urls fix: bundled dev support for vite (#7482) 2026-05-24 22:08:23 +02:00
virtual-routes rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
website rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00