@tanstack/react-router 1.19.0 → 1.19.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.
package/src/link.tsx CHANGED
@@ -604,24 +604,9 @@ export const Link: LinkComponent = React.forwardRef((props: any, ref) => {
604
604
  })
605
605
  : props.children
606
606
 
607
- if (type === 'external') {
608
- return <a {...linkProps} ref={ref} children={children} />
609
- }
610
-
611
- return <InternalLink {...linkProps} ref={ref} children={children} />
607
+ return <a {...linkProps} ref={ref} children={children} />
612
608
  })
613
609
 
614
- const InternalLink: LinkComponent = React.forwardRef((props: any, ref) => {
615
- return (
616
- <a
617
- {...{
618
- ref: ref as any,
619
- ...props,
620
- }}
621
- />
622
- )
623
- }) as any
624
-
625
610
  function isCtrlEvent(e: MouseEvent) {
626
611
  return !!(e.metaKey || e.altKey || e.ctrlKey || e.shiftKey)
627
612
  }
package/src/router.ts CHANGED
@@ -863,7 +863,7 @@ export class Router<
863
863
  dest.from ?? this.latestLocation.pathname,
864
864
  `${dest.to}`,
865
865
  )
866
- : fromRoute?.fullPath
866
+ : this.resolvePathWithBase(fromRoute?.fullPath, fromRoute?.fullPath)
867
867
 
868
868
  const prevParams = { ...last(fromMatches)?.params }
869
869