fix: use pushState instead of replaceState for chat navigation
Browser back/forward now correctly traverses through each visited chat.
This commit is contained in:
1 parent
4e0dce9a03
commit
f80537ad76
1 file changed
+1
-1
+1
-1
@@ -697,7 +697,7 @@ function _setActiveSessionUrl(sid){
|
||||
if(typeof window==='undefined'||!window.history||!sid) return;
|
||||
const next=_sessionUrlForSid(sid);
|
||||
if(next && next!==(window.location.pathname+window.location.search+window.location.hash)){
|
||||
window.history.replaceState({session_id:sid},'',next);
|
||||
window.history.pushState({session_id:sid},'',next);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user