Skip to content

Commit abe028b

Browse files
authored
Fix Link behaviour reloading the page (#3456)
1 parent 12c2451 commit abe028b

File tree

1 file changed

+1
-1
lines changed
  • packages/gitbook/src/components/primitives

1 file changed

+1
-1
lines changed

packages/gitbook/src/components/primitives/Link.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ export const Link = React.forwardRef(function Link(
8989
if (isInIframe && isExternalWithOrigin) {
9090
event.preventDefault();
9191
window.open(href, '_blank', 'noopener noreferrer');
92-
} else {
92+
} else if (isExternal) {
9393
// The external logic server-side is limited
9494
// so we use the client-side logic to determine the real target
9595
// by default the target is "_self".

0 commit comments

Comments
 (0)