Designer API
Control the Webflow Designer
page.getPublishPath()
Get the publish path of the page.
1page.getPublishPath(): Promise<null | string>
Promise<null | string>
null | string
A promise that resolves to the publish path of the page.
1// Get Current Page2const currentPage = await webflow.getCurrentPage() as Page34// Get page publish path5const pagePublishPath = await currentPage.getPublishPath()6console.log(pagePublishPath)
Try this example