mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-22 16:30:34 +01:00
resolve window opener being set if ajaxify overrides on external link
This commit is contained in:
@@ -366,7 +366,9 @@ $(document).ready(function () {
|
||||
}
|
||||
} else if (window.location.pathname !== config.relative_path + '/outgoing') {
|
||||
if (config.openOutgoingLinksInNewTab && $.contains(contentEl, this)) {
|
||||
window.open(this.href, '_blank');
|
||||
var externalTab = window.open();
|
||||
externalTab.opener = null;
|
||||
externalTab.location = this.href;
|
||||
e.preventDefault();
|
||||
} else if (config.useOutgoingLinksPage) {
|
||||
var safeUrls = config.outgoingLinksWhitelist.trim().split(/[\s,]+/g).filter(Boolean);
|
||||
|
||||
Reference in New Issue
Block a user