URL params not working

Wappler Version : Latest
Operating System : Mac OS X
Server Model: Node
Database Type: Mongo
Hosting Type: Local

Expected behavior

What do you think should happen?

When sending a url param it needs to be available in the receiving page.

Actual behavior

What actually happens?
I cant retrieve the query param on the receiving page.

How to reproduce

Created the route:

Defined the query params

Created a link

On the receiving page try to out put the param

Screenshot 2022-05-12 at 09.56.07

But the value doesn't pull through

Screenshot 2022-05-12 at 09.56.15

Thanks

In the browser.goto URL properties, click on the routes icon (last icon). When route with the query param is selected, it will ask for the value of parameter to pass to the route.

That is how I done it and nothing.

active_view is expecting a value that will be passed on to the target page, which can then be used to fetch records from a table by applying query parameter as a condition. The value for active_view can be a field from an API on the source page. Is the expected value for this parameter a dynamic value or static as shown in the screenshot?

After editing the route has the content page had a save?

Just asking because it is needed to update this line:

<meta name="ac:route" content="/guides">

/guides would be your new defined url

It is a static value.

that doesn’t make a difference.

As @Sorry_Duh mentioned, is route on the target page showing as:

<meta name="ac:route" content="/associations/:active_view">

Thanks @Sorry_Duh & @guptast

I also call the page without a path param.

It seem the route with path param has to be above the route without path param for this to work.

No the ac:route updates correctly

That is now setting the above correctly.

Excellent. Glad it’s working correctly now :slightly_smiling_face:

1 Like