Closed shaunakv1 closed 1 year ago
This is more an issue with Turbo than this gem. Turbo doesn't handle redirects to external URLs properly, so it breaks when /auth/auth0
tries to redirect to Auth0. There's a discussion about it here https://github.com/hotwired/turbo/issues/401. Since /auth/auth0
isn't expected to fail, it's safe to just disable Turbo for it.
Thanks for chiming in @TastyPi!
Describe the problem
After following the setup instructions for Rails and adding the button. The button does nothing. Note that I have a fully functional rails 5 application that works just fine with exact same code. May be the documentation needs to reflect this?
<%= button_to 'Login', '/auth/auth0', method: :post %>
However this works just fine:
<%= button_to "Login", "/auth/auth0", method: :post, data: { turbo: false } %>
What was the expected behavior?
Expected to redirect to Auth0 Login page
Environment