Whenever I have Turbolinks enabled, logout and re-login does not work properly.
First the logout
method returns a redirect which did not seem to work with Turbolinks (URL was still /logout
instead of /login
). I can get around it using this middleware https://github.com/code-orange/turbolinks-location.
Re-login, however, does not work. Either the user is logged out immediately after re-login or I get a 419
response from livewire (login
is a Livewire component).
As soon as I comment Turbolinks.start()
in app.js
everything works fine.
I’m wondering if somebody has made the same experience and found a reason / solution.