page.getPublishPath()

Get the publish path of the page.

Syntax

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

Returns

Promise<null | string>

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

Example

1// Get Current Page
2const currentPage = await webflow.getCurrentPage() as Page
3
4// Get page publish path
5const pagePublishPath = await currentPage.getPublishPath()
6console.log(pagePublishPath)

Designer Ability

Designer AbilityLocaleBranchWorkflowSitemode
canReadPageSettingsAnyAnyAnyAny
Built with