Search.../

getPageUrl( )

Gets the full URL for a dashboard page.

Description

This function can only be used in page code files for dashboard pages created in the Wix Editor or with Wix Blocks.

Authorization

Request

This endpoint does not take any parameters

Response Object

Fulfilled - The URL of the dashboard page.

Returns an empty object.

Status/Error Codes

Was this helpful?

Get the URL of the dashboard home page

Copy Code
1import { getPageUrl } from 'wix-dashboard';
2
3// ...
4
5console.log('Home page url is:', await getPageUrl({pageId: '2e96bad1-df32-47b6-942f-e3ecabd74e57'}));