resolve window opener being set if ajaxify overrides on external link

v1.18.x
Julian Lam 7 years ago
parent 11233b1651
commit a3e724e134

@ -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);

Loading…
Cancel
Save