In sca, getBreadcrumbPages is a standard function to add and update the breadcrumb of the website page.An example of the function is added below
getBreadcrumbPages: function (stage) {
var breadcrumbs = [];
try {
breadcrumbs.push({
text: 'Lab Dashboard',
href: '/dashboard'
});
breadcrumbs.push({
text: 'Clinician Details',
});
breadcrumbs.push({
text: 'Patient Details',
});
breadcrumbs.push({
text: 'Case Details',
});
breadcrumbs.push({
text: 'Confirm Your Booking',
});
breadcrumbs.push({
text: 'All Booked',
});
} catch (e) {
SC.Library.errorHandler('jj.ESBookpatient.Bookpatient.View', 'getBreadcrumbPages', e);
}
return breadcrumbs;
}