@tanstack/router-core 1.171.1 → 1.171.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tanstack/router-core",
3
- "version": "1.171.1",
3
+ "version": "1.171.2",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -1935,7 +1935,7 @@ export class RouterCore<
1935
1935
  const roundTrip = this.getMatchedRoutes(nextPathname)
1936
1936
  if (roundTrip.foundRoute?.id !== destRoute.id) {
1937
1937
  console.warn(
1938
- `Generated path "${nextPathname}" for route "${destRoute.id}" did not match the same route after params.stringify.`,
1938
+ `Generated path "${nextPathname}" for route "${destRoute.id}" matched route "${roundTrip.foundRoute?.id}" instead. This can happen when multiple route templates resolve to the same URL. Use the route template that matches the intended route, or adjust params.stringify if it changed the target path.`,
1939
1939
  )
1940
1940
  }
1941
1941
  } catch {