mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 03:01:08 +01:00
closes #1423
This commit is contained in:
@@ -250,9 +250,18 @@ var ajaxify = ajaxify || {};
|
|||||||
// Internal link
|
// Internal link
|
||||||
var url = this.href.replace(rootUrl + '/', '');
|
var url = this.href.replace(rootUrl + '/', '');
|
||||||
|
|
||||||
|
if(window.location.pathname === this.pathname && this.hash) {
|
||||||
|
if (this.hash !== window.location.hash) {
|
||||||
|
window.location.hash = this.hash;
|
||||||
|
}
|
||||||
|
|
||||||
|
ajaxify.loadScript(ajaxify.getTemplateMapping(url));
|
||||||
|
e.preventDefault();
|
||||||
|
} else {
|
||||||
if (ajaxify.go(url)) {
|
if (ajaxify.go(url)) {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else if (window.location.pathname !== '/outgoing') {
|
} else if (window.location.pathname !== '/outgoing') {
|
||||||
// External Link
|
// External Link
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user