Get page publish path

page.getPublishPath()

Get the publish path of the page.

Syntax

page.getPublishPath(): Promise<null | string>

Returns

Promise<null | string>

A promise that resolves to the publish path of the page.

Example

// Get Current Page
const currentPage = await webflow.getCurrentPage() as Page
// Get page publish path
const pagePublishPath = await currentPage.getPublishPath()
console.log(pagePublishPath)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny