@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/dist/cjs/router.cjs
CHANGED
|
@@ -288,7 +288,8 @@ var RouterCore = class {
|
|
|
288
288
|
server: this.isServer
|
|
289
289
|
}).interpolatedPath).path;
|
|
290
290
|
if (process.env.NODE_ENV !== "production" && destRoute && !opts.leaveParams) try {
|
|
291
|
-
|
|
291
|
+
const roundTrip = this.getMatchedRoutes(nextPathname);
|
|
292
|
+
if (roundTrip.foundRoute?.id !== destRoute.id) console.warn(`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.`);
|
|
292
293
|
} catch {}
|
|
293
294
|
let nextSearch = fromSearch;
|
|
294
295
|
if (opts._includeValidateSearch && this.options.search?.strict) {
|