When the button is clicked the key’s unique IDs are passed into the URL (w, p and b), but how do I use the URL to show the corresponding group/the group the button would take the user to?
One way to do it (with one unique id): On the page element itself, are 2 dropdowns: “Type of Content” and “Backup field for URL”:
Set the “Type of Content” to the same data type as the URL ‘thing’ you are referencing in the URL. On the group(s) you add to the page, set their data source to ‘Current page’s (data type)’.
To do it with multiple parameters like you’re showing, you’ll need to create a workflow ‘Page is Loaded’. Under this, add an action step: ‘Display data in Group/popup’’ → ‘Element’ (choose the group you want to display the data in) → ‘Data to display:’ “Get Data from page URL” → ‘Parameter name’: ‘w’ → set the ‘Type’ dropdown to the type of data ‘W’'s unique ID is.
Repeat as 2 additional steps for your parameters ‘p’ and ‘b’
I did some experimenting and I would suggest a mix of custom states, with the current URL parameters loaded in them. On the workflow, choose ‘Do when a condition is true’ and mark the ‘Run This:’ “Every Time”. On its ‘Only when’ choose ‘When get data from page URL’ Parameter ‘W’ is not text (wherever you set your custom state). Then set another workflow that will set the state to the new URL parameter, based on a button press.
So as a workaround I opted for your first suggestion of one unique ID, in my case the ‘b’ key.
Although, the functionality I was trying to achieve was to have ‘w’ and ‘p’ key (which are for ‘workspace’ and ‘project’) stay open or dropped down when the b key is in the URL, as below:
What’s happening now is when I refresh my URL the above screenshot section collapses back to it’s default text of:
I think you’re going to need to play around with conditions to keep your sections expanded; if there’s anything a user does when they interact with a page, that they would normally do each time they visit, you’ll need to find a way to ‘store’ what they’ve done, either in the URL or in the User data, so when they refresh those settings are intact. Think of it this way - if there’s a button on a page that when clicked, changes from ‘Red’ to ‘Green’, you need to save that it was clicked and should be green somewhere, otherwise how would the browser know ‘from now on when I show this page, that button should now be green.’
Hope this helps point you in the right direction! If so feel free to hit the ‘Solution’ button or a few of those ‘hearts’