I’m using the URL Router for Navigation plugin on separate groups which is working well, but if I refresh the page it gives an error. Is there a proper workflow to get back to the index page?
The gif below shows the index page, a user clicking on the messages button and then refreshing the page.
I’ve checked the backoffice, but still not understand how to display the correct group when the page reloads or when the page changes and go back… I have the error : Not found.
For us to better understand your use case, could you please share as many details as possible, including your setup screenshots and a step-by-step explanation of how to reproduce the issue you have faced and the expected result? This information will allow us to investigate your case and help you resolve it.
P.S: I’ve tried also with Get data from page URL, the problem is that the workflow Go To page must be the last action so the “Change Router Url” has to come in step 1 and not working
First of all, the reason why the URL is changing, but the desired group is not visible is because of the condition that you’re using to relay on the custom state’s value. Here the problem is your custom state’s value changes when you click the group’s name on the sidebar, but not when you click the “back” button. Therefore, we recommend you change your setup and use the plugin’s path.
Besides, we need to point out that our plugin is not recognizing the “back” browser’s button action, that’s why we have a “go back router” action to trigger a button. So, please use it instead to go back to the previous URL router’s step.
As for the 404 error, since our plugin is not changing the actual page/app structure, but just changes the look of the page URL, it is expected that you get the 404 error on the page load, which URL contains an unknown page name. But, there is a workaround that might be useful for you.
So, if we indicate the main page name (in your case it’s profile) to our URL and use this name in the “Change URL Router” actions, especially in the Page is loaded event. The Bubble will be able to understand which page to go on page load as it will be a known page name. For example:
If you like our plugin you can rate it by going to the Plugins tab in the Bubble editor by sharing your experience with the rest of the Bubble community. You can find the plugin by name and give it as many stars as it deserves
Please let us know if there is anything else we can help you with. Have a great day!