AllYourBot / hostedgpt

An open version of ChatGPT you can host anywhere or run locally.
MIT License
217 stars 85 forks source link

Turbo was executing the logout_path when the mouse entered the logout… #250

Closed Tabenkin closed 2 months ago

Tabenkin commented 2 months ago

Turbo anticipates user actions by calling urls when the mouse enters the element. For the Logout button, Turbo was calling the logout_path and terminating the user's session.

Adding data: { turbo: false } to the button disables this behaviour on the logout button.