Custom States and URL Params

Hi! I have some custom states that simply hide and show things depending on whats clicked. Everytime for example dashboard is clicked, at the end of the workflow I use the “Go to Page” function and send params for example ‘menu = dashboard’ to the URL and vis versa for the Chats button. I see that the URL changes but when I refresh the page, it just goes back to the default view of chats instead of staying on the dashboard once I’ve clicked dashboard. I know its probably a simple fix but any ideas?

Thank you!

You likely have a workflow action that is causing it to do another go to page action that removes the URL parameters.

In the workflows tab, use the dropdown at the top

Screen Shot 2024-06-11 at 12.19.54 AM

type in go to page and check all of your go to page actions to find the culprit

Ill have a look at it and let you know how it goes!

I just check and theres nothing changing the Url, Its like the workflows that hide and show things get reset. Not sure whats happening.

If the url parameters are remaining in the URL but the view is not the same, the conditions you use on the elements likely is not referring to the URL parameter value.

1 Like

You were right! I got it fixed by simply adding conditions, the issue was that I had to just make sure a certain element stays hidden if the URL contains certain Params, Thanks for the help!