0
Fork 0
mirror of https://github.com/TanStack/router.git synced 2026-11-16 19:38:07 +00:00
router/e2e/react-start/basic
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
..
.devcontainer docs: add devcontainer.json to all e2e/examples (#6972) 2026-03-18 15:43:14 +01:00
public fix: script hydration (#6681) 2026-02-16 19:22:09 +01:00
src rename inputValidator to validator (#7566) 2026-06-06 23:05:56 +02:00
tests fix(router-core): preserve percent-encoded URL-unsafe chars in decodeSegment (#7695) 2026-06-30 23:27:21 +02:00
.gitignore rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00
.prettierignore refactor(react-start): rename e2e/start to e2e/react-start (#3565) 2025-02-25 22:37:01 +01:00
package.json feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
playwright.config.ts feat(start-plugin-core): support Rsbuild preview SSR middleware (#7372) 2026-06-16 10:30:39 +02:00
postcss.config.mjs rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00
rsbuild.config.ts rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00
server.js chore: update express and webpack-dev-server (#7443) 2026-05-20 10:58:22 +02:00
start-mode-config.ts fix: fix primitive beforeLoad errors (#7505) 2026-05-30 01:29:42 +02:00
tsconfig.json chore: unify react-start basic e2e mode projects (#7206) 2026-04-18 22:52:56 +02:00
vite.config.ts rsbuild plugin (#7228) 2026-04-24 03:26:03 +02:00