mirror of
https://github.com/GitbookIO/gitbook.git
synced 2026-09-21 18:13:29 +00:00
Fix Link behaviour reloading the page (#3456)
This commit is contained in:
@@ -89,7 +89,7 @@ export const Link = React.forwardRef(function Link(
|
||||
if (isInIframe && isExternalWithOrigin) {
|
||||
event.preventDefault();
|
||||
window.open(href, '_blank', 'noopener noreferrer');
|
||||
} else {
|
||||
} else if (isExternal) {
|
||||
// The external logic server-side is limited
|
||||
// so we use the client-side logic to determine the real target
|
||||
// by default the target is "_self".
|
||||
|
||||
Reference in New Issue
Block a user