You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a POST login form that redirects to the page that the user was trying to go to on success. Because it's a redirect, the text/vnd.turbo-stream.html Accept header is copied over to the new GET request. This causes issues on some pages that support turbo streams (the root path in my case) because they'll incorrectly determine that the request is a turbo stream request and the response is nothing that my login form is capable of interpreting.
I have a POST login form that redirects to the page that the user was trying to go to on success. Because it's a redirect, the
text/vnd.turbo-stream.html
Accept header is copied over to the new GET request. This causes issues on some pages that support turbo streams (the root path in my case) because they'll incorrectly determine that the request is a turbo stream request and the response is nothing that my login form is capable of interpreting.It would be really useful if https://github.com/hotwired/turbo/blame/ae14a60e7a5784deeb54cadeb47778693855c57f/src/core/drive/form_submission.js#L211 respected a
data-turbo-stream="false"
for such cases. I tried disabling turbo altogether (data-turbo="false"
) but then that seems to interfere with Turbo-Native, and the login form does nothing in mobile apps.Devise login form:
The text was updated successfully, but these errors were encountered: