Go back workflow in one page app

Hi,

I also heard that URL parameters are more suitable for navigation on one page apps and I’ve used them to build my app. But when i wanted to turn the app to a native app, bubble listed me several errors related to the use of URL parameters (which is normal because a native app has no URL). So the only possibility left is to use the custom states.

image

To build navigation history, I added a Data Type in my database with the list of custom states. Every time I navigate, I add a line with the current custom states to my data type, and every time I use return button, I set the states of the last line to navigate and then delete that line.