fix: use pushState instead of replaceState for chat navigation

Browser back/forward now correctly traverses through each visited chat.
This commit is contained in:
Josh committed 2026-05-02 09:53:59 +01:00
1 parent 4e0dce9a03
commit f80537ad76
1 file changed
+1 -1
+1 -1
View File
@@ -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);
}
}