Clear search params when creating new chat (#99)

This commit is contained in:
Brian Hackett 2025-04-06 15:48:50 -07:00 committed by GitHub
parent 6a10de31a6
commit eef6181fd7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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);
}