mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-19 23:10:21 +01:00
fix: don't append to history on refresh or ajaxify to same url
This commit is contained in:
@@ -43,6 +43,10 @@ ajaxify = window.ajaxify || {};
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!quiet && url === ajaxify.currentPage + window.location.search + window.location.hash) {
|
||||||
|
quiet = true;
|
||||||
|
}
|
||||||
|
|
||||||
app.leaveCurrentRoom();
|
app.leaveCurrentRoom();
|
||||||
|
|
||||||
$(window).off('scroll');
|
$(window).off('scroll');
|
||||||
|
|||||||
Reference in New Issue
Block a user