v1.18.x
Julian Lam 10 years ago
parent b2a69758ee
commit 4b9eab6dc0

@ -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) {
if (ajaxify.go(url)) {
e.preventDefault();
}
} else {
// Special handling for urls with hashes // Special handling for urls with hashes
if (this.hash !== window.location.hash) { if (this.hash !== window.location.hash) {
window.location.hash = this.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') {

Loading…
Cancel
Save