mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-23 03:29:57 +02:00
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:
@@ -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 + '/', '');
|
||||
|
||||
|
||||
Reference in New Issue
Block a user