@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.
@@ -326,7 +326,8 @@ class Router {
326
326
  );
327
327
  let pathname;
328
328
  if (dest.to) {
329
- pathname = this.resolvePathWithBase(fromPath, `${dest.to}`);
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({