Search.../

navigate( )

Navigates the user to another page in the dashboard.

Description

This function can only be used in page code files for dashboard pages.

If an invalid pageId value is passed to this function, a Page Not Found message is displayed in the dashboard.

Syntax

function navigate(pageId: string): void

navigate Parameters

NAME
TYPE
DESCRIPTION
pageId
string

ID of the page to navigate to. Use the Dashboard Page IDs table to find the appropriate ID.

Returns

This function does not return anything.

Return Type:

void

Was this helpful?

Navigate to the dashboard home page

Copy Code
1import { navigate } from 'wix-dashboard';
2
3// ...
4
5navigate('home');