We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05490a7 commit f22f00aCopy full SHA for f22f00a
packages/react-router-dom/index.tsx
@@ -418,8 +418,9 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
418
},
419
ref
420
) {
421
- let isExternal = false;
+ // Rendered into <a href> for absolute URLs
422
let absoluteHref;
423
+ let isExternal = false;
424
425
if (
426
isBrowser &&
@@ -439,7 +440,7 @@ export const Link = React.forwardRef<HTMLAnchorElement, LinkProps>(
439
440
}
441
442
- // `href` is what we render in the <a> tag for relative URLs
443
+ // Rendered into <a href> for relative URLs
444
let href = useHref(to, { relative });
445
446
let internalOnClick = useLinkClickHandler(to, {
0 commit comments