diff --git a/app/lib/persistence/useChatHistory.ts b/app/lib/persistence/useChatHistory.ts index 07bf8498..39dc6373 100644 --- a/app/lib/persistence/useChatHistory.ts +++ b/app/lib/persistence/useChatHistory.ts @@ -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); }