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.
Syntax
function getPageUrl(destination: Destination): Promise<string>
getPageUrl Parameters
NAME
TYPE
DESCRIPTION
destination
Destination
URL destination details.
Returns
Fulfilled - The URL of the dashboard page.
Return Type:
Promise<string>
Was this helpful?
Get the URL of the dashboard home page
Copy Code
1import { getPageUrl } from 'wix-dashboard';23// ...45console.log('Home page url is:', await getPageUrl({pageId: 'home'}));