This article presents possible use cases and corresponding sample flows that you can support. It provides a useful starting point as you plan your implementation.
To build a breadcrumb trail for the current page, follow these steps:
Index the pages by slug, so you can look up each parent page by its parentSlug:
Start the trail with the current page, and keep a set of the slugs already in the trail:
Walk up through each page's parentSlug, adding each parent to the start of the trail. Stop when a parent isn't in pages or is already in the trail, so a broken parent chain can't loop forever:
Put the main page first, unless the trail already starts with it:
Build each page's link from the site root URL, siteUrl in @wix/site-service-url, and the page's path. Link the main page to the site root URL itself, which is where site visitors reach it:
Render the trail, labeling each entry with its title. Show the current page, the last entry, as text rather than a link:
To adapt a component shown in a popup, follow these steps:
Read popup from currentPage. For a component shown in a popup, the current page is the popup:
Render only the form, your own SignUpForm component, in a popup, or the form with a heading and a description on a page:
Last updated: 25 October 2026