In this demo, I’ve created a table called “BreadCrumbItem” to store the breadcrumb items. Each item has a name, URL, and can have a parent ID. The “BreadCrumbWebBlock” web block receives an identifier for the current breadcrumb item. This identifier corresponds to the actual page being viewed and for which we want to display the breadcrumb. The web block then queries the “BreadCrumbItem” table to retrieve the current item and its parents, enabling the creation of the breadcrumb.
Based on: https://www.outsystems.com/forge/component-overview/2414/dynamicbreadcrumbs