mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-18 03:31:03 +01:00
fixes #3329
This commit is contained in:
@@ -278,16 +278,12 @@ $(document).ready(function() {
|
|||||||
// Internal link
|
// Internal link
|
||||||
var url = this.href.replace(rootUrl + RELATIVE_PATH + '/', '');
|
var url = this.href.replace(rootUrl + RELATIVE_PATH + '/', '');
|
||||||
|
|
||||||
if(window.location.pathname !== this.pathname || this.search !== window.location.search) {
|
// Special handling for urls with hashes
|
||||||
if (ajaxify.go(url)) {
|
if (this.hash !== window.location.hash) {
|
||||||
e.preventDefault();
|
window.location.hash = this.hash;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
// Special handling for urls with hashes
|
|
||||||
if (this.hash !== window.location.hash) {
|
|
||||||
window.location.hash = this.hash;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
if (ajaxify.go(url)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
} else if (window.location.pathname !== '/outgoing') {
|
} else if (window.location.pathname !== '/outgoing') {
|
||||||
|
|||||||
Reference in New Issue
Block a user