A subset of the Route properties to navigate to. If neither p
nor path
is given, the current path is used. For other properties, an empty/default value is assumed if not given. For convenience:
path
.p
array.p
, it may contain numbers, which will be converted to strings.search
, its values may be numbers, which will be converted to strings.Examples:
// Navigate to /users/123
route.go("/users/123");
// Navigate to /users/123?tab=feed#top
route.go({p: ["users", 123], search: {tab: "feed"}, hash: "top"});
Navigate to a new URL by pushing a new history entry.
Note that this happens synchronously, immediately updating
route
and processing any reactive updates based on that.