How to test URL query in editor? [Solved]

I have a workflow on page load where I need to read URL query parameters.
Im trying to use Browser.query.
When I paste my query string to url in Editor right after page path, Browser.query is empty. when I reload page with new query string, it redirects to my home page so I cannot get my workflow tested.
I tried to create ?query variables, doesn’t work either. i’m doing something wrong :slight_smile:

How to test url query in Editor? how to acquire/extract it correctly from string?

This should work as long as the variable name matches the query name in the URL.

Can you share a few screenshots or, even better, a screen recording of how things are setup on your side?

you append the query parameter after your editor url

editor.weweb…/6f03946f-53ab-44cd-acec-6dafb705a4f7/897a3426-66c6-4faa-ad0c-9e522b24f685 ?your_query=goes_here

You can also create a variable of type query, what you put inside the path should automatically be parsed and put inside the variable

Thank you all, it was my mistake.

In URL, I have added not one variable but few: ?param1=x&param2=y, and misunderstood that it should be parsed as few query parameters. But i removed second param and “?param1=x” works well in URL

1 Like