We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db0afdf commit 62b0742Copy full SHA for 62b0742
packages/router-core/src/path.ts
@@ -1,4 +1,4 @@
1
-import { last } from './utils'
+import { hasUriEncodedChars, last } from './utils'
2
import type { MatchLocation } from './RouterProvider'
3
import type { AnyPathParams } from './route'
4
@@ -183,7 +183,14 @@ export function parsePathname(pathname?: string): Array<Segment> {
183
184
return {
185
type: 'pathname',
186
- value: part,
+ value: part.includes('%25')
187
+ ? part
188
+ .split('%25')
189
+ .map((segment) => decodeURI(segment))
190
+ .join('%25')
191
+ : hasUriEncodedChars(part)
192
193
+ : decodeURI(part),
194
}
195
}),
196
)
0 commit comments