diff --git a/client/src/store/families.ts b/client/src/store/families.ts index 5d19331f59..54a2294fb5 100644 --- a/client/src/store/families.ts +++ b/client/src/store/families.ts @@ -93,6 +93,9 @@ const conversationByIndex = atomFamily({ if (shouldUpdateParams) { const newParams = createChatSearchParams(newValue); + if (newValue.chatProjectId) { + newParams.set('projectId', newValue.chatProjectId); + } const searchParams = createSearchParams(newParams); const url = `${window.location.pathname}?${searchParams.toString()}`; window.history.pushState({}, '', url);