From 03cf3e8498b5f40ac065971bf97d3cbfc373cdea Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Fri, 11 Jun 2021 02:31:42 +0300 Subject: [PATCH] Follow-up (#1144) --- src/components/ui/MenuItem.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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}