@tanstack/react-router 1.39.6 → 1.39.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/path.cjs +12 -3
- package/dist/cjs/path.cjs.map +1 -1
- package/dist/cjs/router.cjs +0 -7
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/path.js +12 -3
- package/dist/esm/path.js.map +1 -1
- package/dist/esm/router.js +0 -7
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/path.ts +15 -3
- package/src/router.ts +0 -10
package/src/router.ts
CHANGED
|
@@ -1170,16 +1170,6 @@ export class Router<
|
|
|
1170
1170
|
})
|
|
1171
1171
|
}
|
|
1172
1172
|
|
|
1173
|
-
// encode all path params so the generated href is valid and stable
|
|
1174
|
-
Object.keys(nextParams).forEach((key) => {
|
|
1175
|
-
if (['*', '_splat'].includes(key)) {
|
|
1176
|
-
// the splat/catch-all routes shouldn't have the '/' encoded out
|
|
1177
|
-
nextParams[key] = encodeURI(nextParams[key])
|
|
1178
|
-
} else {
|
|
1179
|
-
nextParams[key] = encodeURIComponent(nextParams[key])
|
|
1180
|
-
}
|
|
1181
|
-
})
|
|
1182
|
-
|
|
1183
1173
|
pathname = interpolatePath({
|
|
1184
1174
|
path: pathname,
|
|
1185
1175
|
params: nextParams ?? {},
|