-
Notifications
You must be signed in to change notification settings - Fork 476
Description
Context:
Application has a simple live search via form:
- Form uses "get" method (just showing data; no updates)
- Form targets a "results" turbo frame
- Form uses data-turbo-action="advance" to update URL (to support users being able to copy/paste w/ params for the search and filter)
What's happening: Live search is working fine. When the form is submitted (automatically as a user types), the turbo frame is updated with the correct results and the URL displays the correct query parameters. However, when navigating with the back button the turbo frame does not navigate backwards, it only shows the most recent set of results (despite the url and associated query params appropriately changing backwards).
What should be happening: As the user navigates backwards the URL query params should change (which is happening) and the turbo frame should reflect the history from that point in time.
When did this start happening: This happened on Turbo 8.0.4. and Turbo Rails 2. If I revert to Turbo < 8 and Turbo Rails < 2, the behavior works as expected.