The best navigation for one page Bubble app
Are you building a no-code one page Bubble app? How are you handling your navigation? In this Bubble tutorial video we'll explain why one page app navigation with custom states has limitations and how using Go to page... with URL parameters can improve your user experience.
Unlock one-page app magic: Learn how to create smooth navigation without custom states in Bubble!
Master URL parameters: Discover the secret to deep linking and enhanced user experience in your one-page Bubble app!
Boost your Bubble skills: Explore a powerful alternative to custom states for seamless page navigation and improved app performance!
One-Page Apps in Bubble
There's no denying that one-page apps just like this one are a very popular way for building no-code apps in Bubble and for structuring your no-code app. Now personally I'm not a fan because a one-page app can very easily spiral out of control and you can end up with thousands of groups on your page which both slows down the Bubble editor and it slows down the experience to users. However, there are some advantages such as the fact that the whole page doesn't reload between each of the panels I've got here each of the groups that I'm choosing to display.
Using Custom States for Navigation
In this Bubble tutorial video, I'm going to show you a different way to achieve a one-page design that doesn't use custom states. At the moment when I click on orders or click on dashboard I'm setting a custom state to dashboard so that it knows which group to show. This is my dashboard these are my orders and now they have conditional statements on based on the custom state.
A Better Approach: URL Parameters
I'm going to show you a different way and I'm going to show you a way that I think has a huge advantage which is that it actually changes the URL so that if you wanted to link directly to the orders tab you can do so. If you're emailing back to one of your app users and saying this is what you need to do here's where you can find that button and you're using custom states you can't link them back like deep link or directly link them to the bit that you're referring to.
Introducing Planet No Code
Let me show you a different way but before I do that if you're learning Bubble you need to check out our website planetnocode.com. We've got hundreds of Bubble tutorial videos some which you cannot find on YouTube you can only find if you're a member at planetnocode.com.
Implementing URL Parameters
The way that we're going to do this is instead of using custom states we're going to use URL parameters. So I've got a repeating group here of views and views is an option set and I'm just going to update the workflow so instead of setting a state I'm going to navigate to a page but the same page that I'm on and I'm going to send a URL parameter and so I'm just going to say view equals current cell's view display.
Using Option Sets
Now that's because I'm using an option set. If you need a little reminder of an option set we've got a view option set here and this is going through each of my dashboard items and the reason I have that is because in a previous video I've shown how you can add in an icon into an option set using font awesome.
Testing the New Navigation
For now if I go back here and refresh it if I click on dashboard it adds to the URL. If I click on orders you'll notice it doesn't actually refresh the page the page didn't blink out and blink back in it simply updates the URL settings.
Setting Up Conditional Statements
Now if I go back to my panels or my sections I can set these up slightly differently. I can say clear that I could say get data from URL and say view is the key and these are my display or view option sets. I'll say when views is I'll just try this maybe I've got to use the display option that's not going to take it so when display is dashboard I'm going to show it.
Handling the Default View
I'm also going to add an or statement here because it goes dashboard is my first option so I'm going to say get data from URL view display is is empty. I'm going to copy this onto orders. I'm sort of a bit suspicious that by using option sets I might this might not work but I'm going to try and if it doesn't work I'll fix it.
Finalizing the Setup
So dashboard we're going to say orders let's test that so dashboard is dashboard is visible then orders settings. Okay yeah it works so let me put this into settings so that settings is visible.
Advantages of URL Parameters
Yeah this is the strength of doing it this way. Look I can refresh my page and because settings that data is in the URL it's going to take me straight back to settings. If I'd use custom states it would have taken me back to dashboards and you'll notice that we get the same quick the page is not blinking out each time I change what group is being displayed.
Conclusion
And so this is by using go to navigate go to to the same page and changing a URL parameter so that you can then dictate which groups are shown based on conditional statements.
Get the Complete Bundle for Just $99
Access 3 courses, 390+ tutorials, and a vibrant community to support every step of your app-building journey.
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 390+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.
Save over 70%!
Valued at $80
Valued at $85
Valued at $30
Valued at $110
Valued at $45
Can't find what you're looking for?
Search our 300+ Bubble tutorial videos. Start learning no code today!
Have questions?
We have answers!
Find answers to common questions about our membership plans, programs, and more.
We're here to help you launch your no code SaaS. Reach out to the team and we'll double check our vast library for useful content. We'll advise you on how we'd tackle the same problem and there's a good chance we'll record the video to help the wider community.
As a Planet No Code member, you'll receive a discount on our Bubble coaching sessions. Monthly members receive a 10% discount, while Annual members receive a 17.5% discount. To redeem your discount, simply log into your account and book a coaching session through our platform.
Our 8-week intensive mentorship program is designed to provide personalized guidance and support to help you accelerate your startup journey. You'll be matched with a startup expert who will work with you one-on-one to set goals, overcome challenges, and make rapid progress.
To apply for the Mastery Program, simply click the "Request Invitation" button on our pricing page and fill out the application form. Our team will review your application and schedule a call with you to discuss your goals and determine if the program is a good fit for your needs.
We accept all major credit cards, including Visa, Mastercard, American Express, and Discover.
While we don't offer a free trial, we do provide a 14-day money-back guarantee. If you're not completely satisfied with your membership within the first 14 days, simply contact our support team, and we'll issue a full refund.