i-dot-ai / redbox

Bringing Generative AI to the way the Civil Service works
https://i-dot-ai.github.io/redbox/
MIT License
83 stars 27 forks source link

Update URL when a new chat is created #800

Closed KevinEtchells closed 1 month ago

KevinEtchells commented 1 month ago

Context

Currently, when a new chat is created the URL stays the same. This means that on a page reload it goes back to a new chat, which could be confusing for users.

Changes proposed in this pull request

Update the URL as soon as we have the new ChatID

Guidance to review

Start a new chat and check the URL updates. Reloading the page stays on the same chat.