@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.
@@ -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
- if (this.getMatchedRoutes(nextPathname).foundRoute?.id !== destRoute.id) console.warn(`Generated path "${nextPathname}" for route "${destRoute.id}" did not match the same route after params.stringify.`);
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) {