diff --git a/src/components/ui/MenuItem.tsx b/src/components/ui/MenuItem.tsx index 5bf7f11ba..a06e23cb3 100644 --- a/src/components/ui/MenuItem.tsx +++ b/src/components/ui/MenuItem.tsx @@ -82,7 +82,7 @@ const MenuItem: FC = (props) => { download={download} aria-label={ariaLabel} title={ariaLabel} - target="_blank" + target={href.startsWith(window.location.origin) ? '_self' : '_blank'} rel="noopener noreferrer" > {content}