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.
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.