@tanstack/react-router 1.102.3 → 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/esm/router.js
CHANGED
|
@@ -324,7 +324,8 @@ class Router {
|
|
|
324
324
|
);
|
|
325
325
|
let pathname;
|
|
326
326
|
if (dest.to) {
|
|
327
|
-
|
|
327
|
+
const resolvePathTo = (fromMatch == null ? void 0 : fromMatch.fullPath) || this.latestLocation.pathname;
|
|
328
|
+
pathname = this.resolvePathWithBase(resolvePathTo, `${dest.to}`);
|
|
328
329
|
} else {
|
|
329
330
|
const fromRouteByFromPathRouteId = this.routesById[(_d = stayingMatches == null ? void 0 : stayingMatches.find((route) => {
|
|
330
331
|
const interpolatedPath = interpolatePath({
|