mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-04 21:15:55 +01:00
change current page after ajaxify:start event
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user