Close popup with browser back button?

Is it possible to close a popup by pressing the browser back button?

Reason I need this is because i have a Single Page App and my user sign up form is a popup. So if a user clicks ‘‘sign up’’, popup shows then click the back button, it exits the entire website/app. I’d prefer for the popup to close so the user still remains on my app. Any ideas?

@leonidas.petrou4 - you can do this using a combination of “Do when condition is true” and updating the URL with a parameter when the popup is shown.

Video walkthrough of how to set it up below.

Dan (creator of LearnTo - 100+ tutorials on all aspects of Bubble)

3 Likes

It’s working now. Thanks!

@dan1 you’re a legend. Thank you so much!

Glad it worked, happy to help.

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.