# Replace instead of advance on Turbo form response redirect

**URL:** https://discuss.hotwired.dev/t/replace-instead-of-advance-on-turbo-form-response-redirect/2249
**Category:** General
**Created:** [February 6, 2021, 8:54pm UTC](https://discuss.hotwired.dev/t/replace-instead-of-advance-on-turbo-form-response-redirect/2249 "2021-02-06T20:54:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![danott](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/danott/32/2089_2.png) [@danott](https://discuss.hotwired.dev/u/danott)
#### Post date: [February 6, 2021, 8:54pm UTC](https://discuss.hotwired.dev/t/replace-instead-of-advance-on-turbo-form-response-redirect/2249/1 "2021-02-06T20:54:29Z")

</div>

When submitting a form with Turbo Drive resolves to a redirect, it advances the browser history. Speaking in Turbo Drive terms, this is a `Turbo.visit("/redirected_to_here", { action: "advance" })`. I have a scenario where I would like the redirect to replace the browser history, simulating a `Turbo.visit("/redirected_to_here", { action: "replace" })`.

The [Application Visit guides](https://turbo.hotwire.dev/handbook/drive#application-visits) have the solution for anchor tags, by annotating with a `data-turbo-action="replace"`. Guessing at an API, I attempted putting a `data-turbo-action="replace"` on the form tag, and the submit tag, but neither resulted in the desired behavior.

Is the desired behavior of redirection-as-replace possible with the current capabilities of Turbo?

---

<div class="post-metadata">

### Author: ![jpsilva](https://yyz1.discourse-cdn.com/flex027/user_avatar/discuss.hotwired.dev/jpsilva/32/2752_2.png) [@jpsilva](https://discuss.hotwired.dev/u/jpsilva)
#### Post date: [June 2, 2022, 9:31pm UTC](https://discuss.hotwired.dev/t/replace-instead-of-advance-on-turbo-form-response-redirect/2249/2 "2022-06-02T21:31:01Z")

</div>

We’re having the same problem, @danott.

Were you able to fix this?
