v1.18.x
barisusakli 11 years ago
parent 1996c8ad49
commit 80ef7e5085

@ -250,8 +250,17 @@ var ajaxify = ajaxify || {};
// Internal link
var url = this.href.replace(rootUrl + '/', '');
if (ajaxify.go(url)) {
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)) {
e.preventDefault();
}
}
} else if (window.location.pathname !== '/outgoing') {
// External Link

Loading…
Cancel
Save