Routing

Navigate from a view to another view or task
As you add more views and tasks to the Airplane ecosystem, you may discover connections between them
The easiest way to navigate from a view to another view or task is by using the href property on a button or link. The href can navigate to a view or task by using the notation href={{ view: my_view }} or href={{ task: my_task }}
You can also add parameters to the task or view that you navigate to by including the params field. Parameters will automatically be populated into a task, and you can use parameters in a view.

Using the navigate function

You can also navigate using the navigate function that is built into the views router.
The navigate function can also add parameters to the task or view that you navigate to.

Reading parameters

View routing parameters are stored as query parameters in the URL. They are added through Navigation or by manually constructing a URL with query parameters.
The parameters are stored on the router which is obtained by calling the hook useRouter. Params are a key-value map from parameter slug to parameter value.
The parameters in the following example will be an empty object since the URL of this page does not have query parameters.
Once you've read in parameters, you can use them as you see fit, perhaps by passing them in as the parameters of a Task backed component.