We have a function that checks the session token and disables the .kn-crumbtrail for a specified scene as called by the handler.
/*******************************************/
/*** Disable Breadcrumb Navigation Links ***/
/*******************************************/
function disableBreadCrumbsNonAdmin() {
if (!Knack.user.session) {
$(".kn-crumbtrail a").each(function () {
$(this).replaceWith($(this).text());
});
}
}
//Page to disable crumbtrail
$(document).on("knack-scene-render.scene_58", function () {
disableBreadCrumbsNonAdmin();
});
"knack-scene-render.scene_58"