mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-29 10:06:13 +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;
|
||||
}
|
||||
|
||||
if (!quiet && url === ajaxify.currentPage + window.location.search + window.location.hash) {
|
||||
quiet = true;
|
||||
}
|
||||
|
||||
app.leaveCurrentRoom();
|
||||
|
||||
$(window).off('scroll');
|
||||
|
||||
Reference in New Issue
Block a user