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