Skip to content
Source
Sign inSign up
TanStack/router

fix(router-core): Backslash in path parameters are incorrectly restored from URL #3987

Closedleesb971204(GitHub profile, opens in a new tab)wants to merge 4 commits intomain fromrefs/pull/3987/headopened

Showing 2 changed files with 25 additions and 28 deletions.

x
0 of 2 viewed, 2 left
24 additions and 22 deletionspackages/react-router/tests/router.test.tsxModified
View file
@@ -723,72 +723,74 @@
it.each([
input: '/path-segment/%C3%A9',
- output: '/path-segment/é',
+ output: '/path-segment/%25C3%25A9',
type: 'encoded',
input: '/path-segment/é',
- output: '/path-segment/é',
- type: 'not encoded',
+ output: '/path-segment/%C3%A9',
+ type: 'encoded',
- input: '/path-segment/100%25', // `%25` = `%`
- output: '/path-segment/100%25',
- type: 'not encoded',
+ input: '/path-segment/100%25',
+ output: '/path-segment/100%2525',
+ type: 'encoded',
input: '/path-segment/100%25%25',
- output: '/path-segment/100%25%25',