Get parent page ID
page.getParentPageId()
Get the ID of the source page that a branch was created from, or null if the page is not a branch.
Use this method together with webflow.switchPage() to navigate from a branch back to the main page.
Syntax
Returns
Promise<string | null>
A Promise that resolves to the parent page ID as a string when the page is a branch, or null when the page is not a branch.