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 created in the Wix Editor or with Wix Blocks.

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

Syntax

function navigate(destination: Destination): void

navigate Parameters

NAME
TYPE
DESCRIPTION
destination
Destination

Destination to navigate to.

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({pageId: 'home'});