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
Start from an app that works with form submission (post/redirect/get), adding Turbo. I expect my form to be handeled by turbo which should call fetch and produce it's magic.
In my case, the content responded to the GET, is appended to the current page.
Even if the response is a complete page (html, head, body).
After clicking my ofrm submitting button here is my result
Then my backend (java/spring ) pick seams to pick the first text/vnd.turbo-stream.html as a response type. Which trigger the wrong behavior in response to that.
Then I can work my way with my backend.
Is this order of accept headers required when treating with real usage of stream ? Is it possible (without breaking contracts) to change this order ??
The text was updated successfully, but these errors were encountered:
Start from an app that works with form submission (post/redirect/get), adding Turbo. I expect my form to be handeled by turbo which should call fetch and produce it's magic.
In my case, the content responded to the GET, is appended to the current page.
Even if the response is a complete page (html, head, body).
After clicking my ofrm submitting button here is my result
The responded html page seems very normal
Something that i've noticed is that the content type is not html as I would assume
Without turbo, my content type of the response is html.
After testing it turns out that turbo send request with the following headers
Then my backend (java/spring ) pick seams to pick the first text/vnd.turbo-stream.html as a response type. Which trigger the wrong behavior in response to that.
Then I can work my way with my backend.
Is this order of accept headers required when treating with real usage of stream ? Is it possible (without breaking contracts) to change this order ??
The text was updated successfully, but these errors were encountered: