@tanstack/react-router 1.102.5 → 1.104.0
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 +3 -3
- package/src/router.ts +3 -1
package/dist/cjs/router.cjs
CHANGED
|
@@ -326,7 +326,8 @@ class Router {
|
|
|
326
326
|
);
|
|
327
327
|
let pathname;
|
|
328
328
|
if (dest.to) {
|
|
329
|
-
|
|
329
|
+
const resolvePathTo = (fromMatch == null ? void 0 : fromMatch.fullPath) || this.latestLocation.pathname;
|
|
330
|
+
pathname = this.resolvePathWithBase(resolvePathTo, `${dest.to}`);
|
|
330
331
|
} else {
|
|
331
332
|
const fromRouteByFromPathRouteId = this.routesById[(_d = stayingMatches == null ? void 0 : stayingMatches.find((route) => {
|
|
332
333
|
const interpolatedPath = routerCore.interpolatePath({
|