Navigates the user to another page in the dashboard.
You can identify the page to navigate to using its page ID. If an invalid page ID is passed to this function, a "Page Not Found" page is displayed in the dashboard.
Note: Currently, you can't use navigate()
to navigate to dashboard pages created with Wix Blocks or to dashboard pages created with the Wix Editor.
Name | Type | Description |
---|---|---|
destination | Destination | Destination to navigate to. |
Name | Type | Description |
---|---|---|
pageId | string | ID of the page to navigate to. See Page IDs to find the appropriate ID. |
relativeUrl | string | Optional. URL segment to append to the base URL of the selected page. Can include path segments, a query string, and a fragment identifier. |
To set up a dashboard client, refer to the setup guide.