I’m trying to add a query variable within a component so it picks up the url parameters from the page. The query variable seems to work fine outside of the component on the page, however when I add it within my component it doesn’t pick up the url parameter
I think the query parameter inside the component is here to set the variable in the URL.
What you can do is have a select button as a component, create a query variable in it.
Create a Workflow on change of the select that update the query variable with the value of the select.
This will directly change the query parameter inside the URL, even in a component.
I think that if you want the variable to pick up the URL query first, you’d have to create a workflow somehow that when something happen, your component update the variable to take the URL query that’s already there.
Hope this helps, good luck and keep us updated if you find your solution!
I created this workflow inside the component, on execution change my variable to the query in the URL.
(Allow execution from outside)
Then outside the component on the element i did an on Mounted workflow that just execute the action.
It seems to be working, the variable receives the url parameter when i try opening the page with differement parameters.