-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Encode Visit Action into Turbo-Action:
header
#694
base: main
Are you sure you want to change the base?
Conversation
18eeb72
to
836a00a
Compare
836a00a
to
c0819b1
Compare
c0819b1
to
1206710
Compare
f9ae4d2
to
41d489f
Compare
5fa4991
to
b2e2b09
Compare
b2e2b09
to
99814da
Compare
99814da
to
969e56a
Compare
969e56a
to
4ef183a
Compare
4ef183a
to
9c804ca
Compare
9c804ca
to
9b287c7
Compare
9b287c7
to
8e724d3
Compare
When initiating a `Visit` from an `<a data-turbo-action="...">` element, encode the Action value into the request's `Turbo-Action:` header. Similarly, when submitting a `<form data-turbo-action="...">`, encode the value into the header. If a `<turbo-frame>` is navigated with an Action, encode the action along with the `Turbo-Frame:` header.
8e724d3
to
cf337b9
Compare
This is exactly what I was trying to achieve here hotwired/turbo-rails#594. I was barking to the wrong tree 😅.
On this last point is where |
When initiating a
Visit
from an<a data-turbo-action="...">
element,encode the Action value into the request's
Turbo-Action:
header.Similarly, when submitting a
<form data-turbo-action="...">
, encodethe value into the header.
If a
<turbo-frame>
is navigated with an Action, encode the actionalong with the
Turbo-Frame:
header.