@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/dist/cjs/link.cjs +1 -15
- package/dist/cjs/link.cjs.map +1 -1
- package/dist/cjs/router.cjs +1 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/link.js +1 -15
- package/dist/esm/link.js.map +1 -1
- package/dist/esm/router.js +1 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/link.tsx +1 -16
- package/src/router.ts +1 -1
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
|
-
|
|
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
|
|