mirror of
https://github.com/stackblitz-labs/bolt.diy
synced 2025-06-26 18:26:38 +00:00
Clear search params when creating new chat (#99)
This commit is contained in:
parent
6a10de31a6
commit
eef6181fd7
@ -108,6 +108,7 @@ function navigateChat(nextId: string) {
|
||||
*/
|
||||
const url = new URL(window.location.href);
|
||||
url.pathname = `/chat/${nextId}`;
|
||||
url.search = '';
|
||||
|
||||
window.history.replaceState({}, '', url);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user