How to create a RouterLink to a path with query parameters?

I have a HelloView that uses afterNavigation to pull query parameters out of the location. I am trying to create a router link to it like so:

RouterLink("Hello",, RouteParameters("id", 123))``` 

and it can't find the view. I assume because it's not using a route parameter but a query parameter instead.

RouterLink has setQueryParameter for this use case.

thanks! that worked… ChatGPT was faster:

Even tho it had to correct itself after providing the wrong recommendation at first :sweat_smile: