Query params in multi-page apps

  • Goal: Pass a resource ID as a query param to a multi page app

  • Steps: Set the query param for each page of the app
    image

  • Details: When you click from page 1 to page 2 it does a couple of weird redirects, but does end up with the query param in the URL.

On clicking from page 2 back to page 1, the query params are removed

1 Like

Hi @Michael_Stone, are we passing a value for that param when navigating from page 2 to page 1?

For example:

On page 2 I have a button with an event handler that sends the value of 1 on navigation:

When we click the button, page 1 opens with the value set above (1):

Looking at the value for `resourceId, it's also 1:
Screenshot 2024-09-26 at 1.35.57 PM

The same applies when going to page 2:

1 Like

Thanks Paulo! That worked. We were slightly tricked because we were using a side navigation button group to switch between pages and had to use a custom menu item type with a specific click event handler instead of the page menu item type.

2 Likes