fix previousUrl being set to current url

v1.18.x
barisusakli 9 years ago
parent ded69e8373
commit 0e92880dd4

@ -61,12 +61,12 @@ $(document).ready(function() {
apiXHR.abort(); apiXHR.abort();
} }
url = ajaxify.start(url, quiet);
if (!window.location.pathname.match(/\/(403|404)$/g)) { if (!window.location.pathname.match(/\/(403|404)$/g)) {
app.previousUrl = window.location.href; app.previousUrl = window.location.href;
} }
url = ajaxify.start(url, quiet);
$('body').removeClass(ajaxify.data.bodyClass); $('body').removeClass(ajaxify.data.bodyClass);
$('#footer, #content').removeClass('hide').addClass('ajaxifying'); $('#footer, #content').removeClass('hide').addClass('ajaxifying');

Loading…
Cancel
Save