Hello!
In my Rails app I have a logout button which sends a delete to a sessions controller. The controller responds with a 303 redirect to the homepage.
I then see two GETs for the homepage: one as a turbo stream and one as HTML.
The Rails logs look like this:
DELETE "/logout"
Processing by SessionsController#destroy as TURBO_STREAM
Redirected to http://0.0.0.0:3000/
Completed 303 See Other
GET "/"
Processing by PagesController#index as TURBO_STREAM
Completed 200 OK
GET "/"
Processing by PagesController#index as HTML
Completed 200 OK
Is this expected behaviour? Ideally I’d like only one GET so the flash message doesn’t get used up without being seen.