List branches
page.listBranches()
List all branches that exist for a page.
Each entry in the returned array contains the branch’s page ID and branch ID.
Use the page ID with webflow.switchPage() to navigate to a branch.
Syntax
Returns
Promise<Array<{pageId: string, branchId: string}>>
A Promise that resolves to an array of objects, one per branch. Each object contains:
The array is empty when the page has no branches.