How do i create dynammic URLs

Hi,

i want to fetch dynamic data from my table in supabase based on the URL.
But somehow i dont understand how it works in weweb.

In my case, i have set the url of the page with a variable.

And this is my table in supabase.

Basically something basic to understand how it works.

Now i want to fetch the supabase table which sets me the URL variable with the supabase url from my database.

In this example it will look like this
mydomain.xx/reg433334z5z6545u

and as wellshow me the name on the dynamic page which is “Max Mustermann”

How do i set the page url variable, in the workflow “change variable value” the page url variable is not showing.

Can someone please explain how is the procedure to set the page url variable?

Many thanks.

Hi @IKR :wave:

Does this video on dynamic collection pages help?

In the example below, you can see:

  1. when the user clicks on a car card
  2. they will be redirected to a “Selected car” page
  3. with the UUID of the Supabase record as a parameter

The reason I have the option to bind to a UUID parameter is because I added it at page level:

When the “Selected car” page loads, I fetch the collection for the car:

Which looks like this:

Note that, I can see the “From path in current page” variables because I am currently on the “Selected car” page. If I was on another page, I wouldn’t be able to see that because the “Current page” would not have the information I’m looking for.

Does that make sense?