Push Tab Names to URL

I have a dashboard that has everything on the “same” page, and am using conditionals to determine what should be showing when X tab is clicked on.

The problem I’m running into is when I try to pass the tab parameter to the url, it doesn’t go anywhere, the url always just stays at /version-test/dashboard rather than /version-test/dashboard?tab=grouptext

Has anyone else run into this?

I do this same thing in my app and it works fine. Based off what you’ve shown, I’d guess that “This Group’s text” is not what you think it is, but just speculating. What’s the debugger say?

When I inspect that element, its showing the text element as empty-- idk how that’s possible since the original screenshot shows “this groups” preview as dashboard. It must be showing the entire element but I’m not sure how to get to that actual text.

If it’s all static, is that ok to pass as arbitrary text?

“This Group” is reflecting Dashboard, but “This Group’s text” needs to also show Dashboard (currently empty as the debugger shows) for your intended conditional to work.

Yes, if you want to use a workflow, etc. to pass the correct text that will work, but if you want to have it be dynamic you can use states and set them based on what is selected, etc. (like in a menu for instance).

That’s what I do currently - my navigation menu is a section and tab structure to represent a top-level menu and then subitems underneath said menu. When I click a link, I update the states to reflect what was clicked.

My previous set up was insanely inefficient-- I think for the time being I’ll pass arbitrary text since I only have 3 tabs. I had workflows for each tab that would hide all other tabs when clicked… so this is a big step up. Thanks for the help!

1 Like

If you are going to use this Group’s text ensure each TabGroup have a type of content as “text” then data source should be typed out say “Alpha 1” , also do the same for the second tab and all respectively… Alpha 2 , Alpha 3

I believe with this it would work seamlessly and show up on the URL …

you can just put “get url thing” in the page name (page properties)

if using an option set (usually the best for menus etc since it’s regularly accessed) then you can just have 2 option set values:

display (default field) = tab name
slug = url param

on click of menu/tab I’d use “go to page” > current page > change url params (and keep other existing params

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