What's the easiest way to implement a browser back button?

I have a home page button that takes the user back to my index page. But that reloads the page. I’d rather use a “<” icon in my header and execute a browser back action. What’s the easiest way to do this? Thanks in advance.

I think I’m looking for the Bubble equivalent of:

<input type="button" value="<" onclick="history.back(-1)" />

1 Like

If you are in different page then you will have to load the pervious page.
If you don’t want to load and wait. Use single page and stack groups one on top of each other and use condition (either on custom state or get page parameter) to hide or show.

You can always perform go to page and go to same index page but send parameter lets say ?nav=pricelist for example

Thanks, but I want unique urls for my pages for SEO.

With Bubble’s recent page slug feature, there are now several approaches, but if you’re looking for a full-featured professional URL router, Sudsy might be worth a look. If you check the blog demo, you’ll see one approach to forward/back navigation when viewing a single blog post (other demos under the nav menu).


Premium Bubble Plug-Ins