getPageUrl( )


Gets the full URL for a dashboard page.

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

Method Declaration
Copy
function getPageUrl(destination: Destination): Promise<string>;
Method Parameters
destinationDestinationRequired

URL destination details.

Returns
Return Type:Promise<string>
Get the URL of the dashboard home page
JavaScript
import { getPageUrl } from "wix-dashboard"; // ... console.log( "Home page url is:", await getPageUrl({ pageId: "2e96bad1-df32-47b6-942f-e3ecabd74e57" }), );
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?