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/
This commit is contained in:
Kaz Rudys
2014-10-03 09:04:38 +01:00
parent 598784b909
commit 740fae7fd8

View File

@@ -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 + '/', '');