How to change page URL without using "Go to page"?

I have a one page app because it must be mobile. When we change tabs within the app, it needs to reflect in the URL (if you’re in the forum, you want to be able to copy and paste the link of where you are by logic, and for SEO purposes too).

However, my app is really slow… and when using this workflow of “Go to page…” often it’s really behind in workflows. It’s not immediate. If you click many times different tabs, instead of being immediate it takes a while to “navigate” to the page each time and will pile up the requests.

Is this normal? Is it supposed to be this way? Or is it because my app memory is too heavy (1.2GB+)? Ideally there would be another way to change the URL…

You can use URL Router plugin by zeroqode & then display the elements based on :items by doing “Path segments as list” in “Get data from page url”.

1 Like

But that stills requires me to somehow change the URL no? I’m wondering if there is something that can work more as a conditional.

My main issue is my app is very heavy, second… I don’t know that I can rely on the “Go to page…” all the way to being in app-stores or if it will cause issues. And third, if I don’t do the URL stuff - what happens to SEO?

I’m honestly kind of confused on how this is all supposed to work…

Thank you for your answer also.

In URL router, you can use an action to change the url, it won’t be similar to ‘Go to page’ , it just pushes an additional string in the URL, which can be dynamic too. I’ve used similar flow on my bubble app for SEO & it has worked wonders for me

So when I use the ‘Go to Page’ workflow, it doesn’t actually load the page it just refreshes the parameters. This is how I have it set up to work.

Editor: testApp42wCleanDB | Bubble Editor

Preview: https://testapp42wcleandb.bubbleapps.io/version-test/dashboard?debug_mode=true&page=Settings

I normally use Option Set values for the menu but I just wanted to drop something on the page quickly to show you how it works. It doesn’t look like it refreshes or loads the page. It seems to just changes the parameter. So if your page is showing up slowly, I don’t think this is the issue. You might have another issue on your page. It could be a Repeating Group that needs pagination or something like that.

Does that help at all? :blush:

1 Like

I had this solution but this is what was causing the requests to pile up and making things a bit slow for a while. (I have a sound that plays when page is loaded, so when clicking buttons quickly you’d hear the sound many times very delayed). I’m having an easier time now using the simple “show/hide” behavior and using the plugin mentioned here to change the URL. Although thank you for your answer :slight_smile: !

Hey, I tried this and it’s been working great! Thanks a lot, it made a large difference :slight_smile:

1 Like

That was likely from a page is loaded workflow trigger.

This is correct. Bubble still fires the page is loaded workflow trigger, however, the page is not ‘re-loaded’, so we are not charged a WU fee for page is loaded when using the go to page action and sending user to the same page, nor are the custom state values changed, nor is data re-fretched from the server. All that happens is the URL parameters are changed, and the ‘when page is loaded’ workflow trigger is executed.

@julpereira82 generally speaking having a sound autoplay should be avoided, but if you were to use go to page actions again, just remember that any actions you run off a page is loaded trigger, they will run again after the workflow action of go to page has executed, but you will not be charged any WUs etc.

2 Likes

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