diff --git a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte index 1369debb3..742e254fc 100644 --- a/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte +++ b/frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte @@ -40,7 +40,7 @@ } return { label: $page.data.label || t, - href: Object.keys(listViewFields).includes(tokens[0]) ? tokenPath : null + href: Object.keys(listViewFields).includes(tokens[0]) && !listViewFields[tokens[0]].breadcrumb_link_disabled ? tokenPath : null }; }); diff --git a/frontend/src/lib/utils/table.ts b/frontend/src/lib/utils/table.ts index 493278ca5..2ec95d5d1 100644 --- a/frontend/src/lib/utils/table.ts +++ b/frontend/src/lib/utils/table.ts @@ -88,7 +88,8 @@ export const listViewFields = { }, 'requirement-assessments': { head: ['name', 'description', 'complianceAssessment'], - body: ['name', 'description', 'compliance_assessment'] + body: ['name', 'description', 'compliance_assessment'], + breadcrumb_link_disabled: true }, evidences: { head: ['name', 'file', 'description'],