From 4b9eab6dc059cc64e00c92ea54868ae877023e97 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Fri, 17 Jul 2015 10:53:00 -0400 Subject: [PATCH] fixes #3329 --- public/src/ajaxify.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/public/src/ajaxify.js b/public/src/ajaxify.js index 1bc44b2cca..decbe3ff4c 100644 --- a/public/src/ajaxify.js +++ b/public/src/ajaxify.js @@ -278,16 +278,12 @@ $(document).ready(function() { // Internal link 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 - if (this.hash !== window.location.hash) { - window.location.hash = this.hash; - } + // Special handling for urls with hashes + if (this.hash !== window.location.hash) { + window.location.hash = this.hash; + } + if (ajaxify.go(url)) { e.preventDefault(); } } else if (window.location.pathname !== '/outgoing') {