Form submit change history

with Turbo ( turbo-rails) if I visit a link the Browser url gets updated but if I submit a form the browser url is not updated

I can see where this behavior is desirable in 90% of cases

but let say I have “search form” with GET Method. When that Search From is submitted I would like the Browser url to reflect the search query (so user can copy paste it to a friend)

is there a simlple way (e.g. data attribute on a form ) how to enable that in turbo-rails or plain Turbo ?

Is this relevant to you?

(It only concerns GET requests, though!)

2 Likes

Oh I see. Thank you for pointing this out

1 Like

I implemented this behavior with stimulus, but nice to see it’s gonna be there by default