Skip to content
Permalink
Browse files
resolve window opener being set if ajaxify overrides on external link
  • Loading branch information
julianlam committed Jun 4, 2018
1 parent 11233b1 commit a3e724e134894860c607e5a9980a308684288c57
Showing with 3 additions and 1 deletion.
  1. +3 −1 public/src/ajaxify.js
@@ -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);

0 comments on commit a3e724e

Please sign in to comment.