Node.js based forum software built for the modern web
change current page after ajaxify:start event
barisusaklie5dc408ef517
diff --git a/public/src/ajaxify.js b/public/src/ajaxify.jsindex 16b0c5bbf2..74c588a1ed 100644--- a/public/src/ajaxify.js+++ b/public/src/ajaxify.js@@ -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