fix: external link not opening (#7859)

This commit is contained in:
Rinku Chaudhari 2024-04-09 19:51:49 +05:45 committed by GitHub
parent a33a400f01
commit d917db438e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 5 deletions

View File

@ -4953,11 +4953,7 @@ class App extends React.Component<AppProps, AppState> {
}
if (!customEvent?.defaultPrevented) {
const target = isLocalLink(url) ? "_self" : "_blank";
const newWindow = window.open(
undefined,
target,
"noopener noreferrer",
);
const newWindow = window.open(undefined, target);
// https://mathiasbynens.github.io/rel-noopener/
if (newWindow) {
newWindow.opener = null;