# V1.0.0-rc.0: How to disable swipe to go back?

**URL:** <https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752>\
**Category:** ionic-v1\
**Created:** [March 7, 2015, 11:21pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752 "2015-03-07T23:21:34Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sebastian](https://forum.ionicframework.com/u/Sebastian)\
**Post date:** [March 7, 2015, 11:21pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/1 "2015-03-07T23:21:34Z")

</div>

I just updated Ionic and ran into the following issue:

I have caching globally disabled. When I am in a view which is not the root of the navigation stack I observed the follwing: When I swipe from the very left to any direction, the screen turns white and the footer is hidden.

**To avoid that behavior I want to disable swipe to go back on ios. How do I do that?**

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![kinhunt](https://avatars.discourse-cdn.com/v4/letter/k/82dd89/32.png) [@kinhunt](https://forum.ionicframework.com/u/kinhunt)\
**Post date:** [March 8, 2015, 11:09am UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/2 "2015-03-08T11:09:07Z")

</div>

I want to know how to enable it.

---

<div class="post-metadata">

**Author:** ![Sebastian](https://avatars.discourse-cdn.com/v4/letter/s/4da419/32.png) [@Sebastian](https://forum.ionicframework.com/u/Sebastian)\
**Post date:** [March 8, 2015, 6:59pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/3 "2015-03-08T18:59:34Z")

</div>

Found how to disable it:

```
$ionicConfigProvider.views.swipeBackEnabled(false);
```

---

<div class="post-metadata">

**Author:** ![stefan81](https://avatars.discourse-cdn.com/v4/letter/s/a88e4f/32.png) [@stefan81](https://forum.ionicframework.com/u/stefan81)\
**Post date:** [April 3, 2015, 11:54pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/4 "2015-04-03T23:54:35Z")

</div>

Thank you, Sebastian.

Does anyone know how to disable it for a specific view?  
I want to disable it on forms, where I have implemented a confirmation before closing/moving away from the form.

Update:  
Just found this thread: [#18808](http://forum.ionicframework.com/t/disable-ios-swipe-to-go-back-for-specific-views/18808)

---

<div class="post-metadata">

**Author:** ![goodbytes](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/goodbytes/32/82678_2.png) [@goodbytes](https://forum.ionicframework.com/u/goodbytes)\
**Post date:** [April 9, 2015, 6:08pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/5 "2015-04-09T18:08:53Z")

</div>

I’m also looking to disable swipe to go back on one specific view. Has anyone done that before?

---

<div class="post-metadata">

**Author:** ![tom4](https://avatars.discourse-cdn.com/v4/letter/t/ebca7d/32.png) [@tom4](https://forum.ionicframework.com/u/tom4)\
**Post date:** [June 1, 2015, 6:04pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/6 "2015-06-01T18:04:39Z")

</div>

👍 -\> using can-swipe-back=“false” on my ion-view worked to disable swipe-back on a single view (found at the bottom of your linked thread)

---

<div class="post-metadata">

**Author:** ![Sahotataran](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sahotataran/32/85284_2.png) [@Sahotataran](https://forum.ionicframework.com/u/Sahotataran)\
**Post date:** [June 2, 2015, 5:26am UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/7 "2015-06-02T05:26:30Z")

</div>

use as

\< ion-view view-title=“View Title” can-swipe-back=“false”\>  
\< /ion-view\>

and it will disable swipe-back on that view

---

<div class="post-metadata">

**Author:** ![jlstr](https://avatars.discourse-cdn.com/v4/letter/j/c68b51/32.png) [@jlstr](https://forum.ionicframework.com/u/jlstr)\
**Post date:** [June 4, 2015, 9:21pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/8 "2015-06-04T21:21:38Z")

</div>

Hello, Where did you find it?

it is not [here in the docs](http://ionicframework.com/docs/api/provider/%24ionicConfigProvider/). Which makes me wonder why is the official docs in such an incomplete state? That worries me a bit. Anyways, could you please let me know where and how did you find this solution?

Thank you very much!

---

<div class="post-metadata">

**Author:** ![Sahotataran](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/sahotataran/32/85284_2.png) [@Sahotataran](https://forum.ionicframework.com/u/Sahotataran)\
**Post date:** [June 4, 2015, 10:08pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/9 "2015-06-04T22:08:14Z")

</div>

its here

[http://ionicframework.com/docs/api/directive/ionView/](http://ionicframework.com/docs/api/directive/ionView/)

---

<div class="post-metadata">

**Author:** ![declanmurphy](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@declanmurphy](https://forum.ionicframework.com/u/declanmurphy)\
**Post date:** [September 11, 2015, 3:42pm UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/10 "2015-09-11T15:42:48Z")

</div>

> [@Sahotataran](#):
>
> can-swipe-back=“false”

This does not appear to be working for me, did anybody else have this problem? (And come up with a solution?)

---

<div class="post-metadata">

**Author:** ![degaray](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@degaray](https://forum.ionicframework.com/u/degaray)\
**Post date:** [July 16, 2017, 3:48am UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/11 "2017-07-16T03:48:24Z")

</div>

> [@Sebastian](#):
>
> ionicConfigProvider.views.swipeBackEnabled(false)

neither it is working to me

---

<div class="post-metadata">

**Author:** ![sebastienC](https://avatars.discourse-cdn.com/v4/letter/s/dec6dc/32.png) [@sebastienC](https://forum.ionicframework.com/u/sebastienC)\
**Post date:** [August 15, 2017, 9:30am UTC](https://forum.ionicframework.com/t/v1-0-0-rc-0-how-to-disable-swipe-to-go-back/18752/12 "2017-08-15T09:30:37Z")

</div>

It does not work for ionic 1.3.2
