Symfony has a great login feature: Visit a protected page → log in → automatically return to the page you wanted. Unless Turbo has other plans... 😅 Here's what happened - and the fix. youtu.be/2oBFtu1cN2c
youtu.beTurbo Broke My Symfony Login?!One of Symfony's nicest login features: if you try to visit a page that requires authentication, you're automatically redirected to the login page. After you log in successfully, Symfony sends you right back to the page you originally requested.
Unless... Turbo gets in the way.
In this case, Turbo intercepts the login form submission and prevents the expected redirect to the protected page. The fix? Disable Turbo for the login form.
Watch the full SymfonyCasts lesson:
👉 https://symfonycasts.com/screencast/symfony8-security/roles
0 reposts0 likes