change current page after ajaxify:start event

v1.18.x
barisusakli 10 years ago
parent a5bf991cf0
commit e5dc408ef5

@ -59,10 +59,11 @@ $(document).ready(function() {
url = ajaxify.removeRelativePath(url.replace(/\/$/, ''));
var hash = window.location.hash;
search = search || '';
ajaxify.currentPage = url;
$(window).trigger('action:ajaxify.start', {url: url});
ajaxify.currentPage = url;
if (window.history && window.history.pushState) {
window.history[!quiet ? 'pushState' : 'replaceState']({
url: url + search + hash

Loading…
Cancel
Save