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.
function getPageUrl(destination: Destination): Promise<string>;
URL destination details.
import { getPageUrl } from "wix-dashboard";
// ...
console.log(
"Home page url is:",
await getPageUrl({ pageId: "2e96bad1-df32-47b6-942f-e3ecabd74e57" }),
);
This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.