# Is it possible to alter the back button behavior for a single view?

**URL:** <https://forum.ionicframework.com/t/is-it-possible-to-alter-the-back-button-behavior-for-a-single-view/39723>\
**Category:** ionic-v1\
**Created:** [December 22, 2015, 8:02am UTC](https://forum.ionicframework.com/t/is-it-possible-to-alter-the-back-button-behavior-for-a-single-view/39723 "2015-12-22T08:02:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ggoforth](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ggoforth/32/95015_2.png) [@ggoforth](https://forum.ionicframework.com/u/ggoforth)\
**Post date:** [December 22, 2015, 8:02am UTC](https://forum.ionicframework.com/t/is-it-possible-to-alter-the-back-button-behavior-for-a-single-view/39723/1 "2015-12-22T08:02:04Z")

</div>

Working through a sidemenu app that’s going great so far. Having one issue I’m unsure of how to fix. Is it possible to conditionally change the back button (Or history stack I guess) for a single view? My workflow is this:

- Navigate to state `app.clients` which shows a list view of all clients.
- In the footer there is a “Add Client” button that navigates to `app.addClient`
- Fill out the form which uses a service to submit the form data to my rest api.
- On success, we do a `$state.go('app.client', {clientId: res.data._id})` which does take us to the client detail state

At this point the history stack looks like `[app.clients, app.addClient, app.client]` so when I land on that final state, going back actually takes me back to the form, instead of the `app.clients` list view that I would like to go back to. Any way to make the `app.client` state always go back to `app.clients`, regardless of how we got there? Thanks so much for any advice!

---

<div class="post-metadata">

**Author:** ![ggoforth](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/ggoforth/32/95015_2.png) [@ggoforth](https://forum.ionicframework.com/u/ggoforth)\
**Post date:** [December 22, 2015, 4:17pm UTC](https://forum.ionicframework.com/t/is-it-possible-to-alter-the-back-button-behavior-for-a-single-view/39723/2 "2015-12-22T16:17:54Z")

</div>

So `$ionicHisotry.nextviewOptions({disableBack: true})` basically gets me where I need to be. I don’t get the clients list as the “back” but not having the back would be preferable to having the form be the back.
