@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/dist/cjs/router.cjs +2 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +2 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +1 -1
package/package.json
CHANGED
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}"
|
|
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 {
|