@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/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 ?? {},