From 740fae7fd8a533daedd6e9a0311394da659fedf2 Mon Sep 17 00:00:00 2001 From: Kaz Rudys Date: Fri, 3 Oct 2014 09:04:38 +0100 Subject: [PATCH] Fix for Outgoing Links Warning page being displayed in IE for internal links. IE appears to set the 'host' property of anchor tags to "" for internal links, this was causing all internal links to be treated as external and therefore being rewritten to point at the Outgoing Link Warning page at /outgoing/ --- public/src/ajaxify.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 99c036d425..287dd63b4c 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -275,7 +275,7 @@ $(document).ready(function() { } if ((!e.ctrlKey && !e.shiftKey && !e.metaKey) && e.which === 1) { - if (this.host === window.location.host) { + if (this.host === '' || this.host === window.location.host) { // Internal link var url = this.href.replace(rootUrl + '/', '');