# Workflow to prevent user from going back to a page via browser's back button

**URL:** <https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710>\
**Category:** Idea\
**Created:** [November 21, 2017, 4:05am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710 "2017-11-21T04:05:01Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![jordanfaucet](https://avatars.discourse-cdn.com/v4/letter/j/91b2a8/32.png) [@jordanfaucet](https://forum.bubble.io/u/jordanfaucet)\
**Post date:** [November 21, 2017, 4:05am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/1 "2017-11-21T04:05:01Z")

</div>

Is it possible to have a checkbox (in the workflow: **“go to page”** ) - so that we can prevent users, from using the browsers back button and going back to the current page?

_ **Specific use case:** _  
I have a log in/sign up sequence on its own page. When a user clicks “log in” or “sign up” they will then be taken to the apps main page.

However: in the unlikely (yet possible) event that they wish to click the “back button” \> I have seen in the development environment that this can trigger a series of bugs relating to the “current user” ( as to whether the current user is signed in or not).

I don’t want users to be able to click the back button and go back to the sign up/login page (once they are logged in) - there is no reason for them to go back there.

I have found work arounds - but they are more hacky than I would like…

* * *

I observed that Facebook integrates this behavior:  
You will find that, on Facebook - once you click login (from the login page) you will be taken to the homepage. From there you cannot click back - to go back to the login.  
The page will just refresh - and you will stay on the homepage.

---

<div class="post-metadata">

**Author:** ![jarrad](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jarrad](https://forum.bubble.io/u/jarrad)\
**Post date:** [November 21, 2017, 5:41am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/2 "2017-11-21T05:41:33Z")

</div>

After reading this it made me thing of similar issues with OAuth, so I have added the “Prevent Back Button”

* * *

----------------- ![A10-1](https://us1.discourse-cdn.com/bubble/original/3X/4/2/42103f577ea808501087d8503d33b2bf369c8555.png) -------- **[OAuth Redirect Repair](https://plugbubble.bubbleapps.io/oauth-repair)**

 ![image](https://us1.discourse-cdn.com/bubble/original/3X/8/9/8932610a49bd443b32a7e3074995de1c7b7bc677.png)

---

<div class="post-metadata">

**Author:** ![JohnMark](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/johnmark/32/42431_2.png) [@JohnMark](https://forum.bubble.io/u/JohnMark)\
**Post date:** [November 21, 2017, 6:13am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/3 "2017-11-21T06:13:45Z")

</div>

Can we use only the function Prevent Back Button?

update:

 ![28 AM](https://us1.discourse-cdn.com/bubble/original/3X/0/d/0d9a5234ab2cc7a0a469f1aeec8d360a981eab9f.png)

---

<div class="post-metadata">

**Author:** ![jarrad](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jarrad](https://forum.bubble.io/u/jarrad)\
**Post date:** [November 21, 2017, 6:21am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/4 "2017-11-21T06:21:48Z")

</div>

Im nearly done building out a nice new home for them, so for now head to the link above, The price is $10 aud, this is a one off cost with no monthly charges or extra’s as new features become available.

At purchase you define you app name, say its `yourapp.bubbleapps.io` then just provide `yourapp` With all of my plugins you get a second Authorization for free that is named `yourapp-backup` for A/B testers. You will also find a transfer button there, this is so you can transfer your plugin’s license to another app and this can be done as many times as you like.  
Cheers,

---

<div class="post-metadata">

**Author:** ![jarrad](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jarrad](https://forum.bubble.io/u/jarrad)\
**Post date:** [November 21, 2017, 6:22am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/5 "2017-11-21T06:22:07Z")

</div>

Yes you certainly can.

---

<div class="post-metadata">

**Author:** ![jarrad](https://avatars.discourse-cdn.com/v4/letter/j/ecae2f/32.png) [@jarrad](https://forum.bubble.io/u/jarrad)\
**Post date:** [November 21, 2017, 6:33am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/6 "2017-11-21T06:33:13Z")

</div>

all done, thank you very much for the support!

---

<div class="post-metadata">

**Author:** ![tools12](https://avatars.discourse-cdn.com/v4/letter/t/c67d28/32.png) [@tools12](https://forum.bubble.io/u/tools12)\
**Post date:** [November 27, 2024, 7:32am UTC](https://forum.bubble.io/t/workflow-to-prevent-user-from-going-back-to-a-page-via-browsers-back-button/20710/7 "2024-11-27T07:32:38Z")

</div>

"How to restrict the user to click on back button ⬅ of the browser, I have gone through many forums, still I don’t find the solution
