mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-15 10:16:12 +01:00
fixes #4966
This commit is contained in:
@@ -334,9 +334,7 @@ $(document).ready(function() {
|
||||
return;
|
||||
}
|
||||
|
||||
var internalLink = this.host === '' || // Relative paths are always internal links
|
||||
(this.host === window.location.host && this.protocol === window.location.protocol && // Otherwise need to check if protocol and host match
|
||||
(RELATIVE_PATH.length > 0 ? this.pathname.indexOf(RELATIVE_PATH) === 0 : true)); // Subfolder installs need this additional check
|
||||
var internalLink = utils.isInternalURI(this, window.location, RELATIVE_PATH);
|
||||
|
||||
if ($(this).attr('data-ajaxify') === 'false') {
|
||||
if (!internalLink) {
|
||||
|
||||
Reference in New Issue
Block a user