Use URL Query Variable in Formula

I want to take the following url and use the query variable id in a formula.

…weweb-preview.io/question/?q=34

But I want users to be able to navigate directly to this url from an external link. So I won’t be able to set a variable based on a click on a previous page.

I want to set the variable directly from the URL (i.e. 34) when the page is navigated to. Is this possible?

Yeah of course!

If the query variable is set in the URL, then having a query variable named q in WeWeb will automatically take 34 as a value in this case. You can then reuse this variable to fetch the right data on page load :wink: