From 8ce09c16e00e7af04d507fb8af89e804dbc2da11 Mon Sep 17 00:00:00 2001 From: el-rabies Date: Wed, 1 Apr 2026 13:57:41 -0400 Subject: [PATCH] fix: Removed unused links from FAQ breadcrumbs --- .../src/app/breadcrumb/breadcrumb.component.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/projects/website-angular/src/app/breadcrumb/breadcrumb.component.ts b/projects/website-angular/src/app/breadcrumb/breadcrumb.component.ts index ef4cdcb..2442698 100644 --- a/projects/website-angular/src/app/breadcrumb/breadcrumb.component.ts +++ b/projects/website-angular/src/app/breadcrumb/breadcrumb.component.ts @@ -55,6 +55,12 @@ export class BreadcrumbComponent { this.updateBreadcrumbs(path_segments); } }) + } else if (path_segments.includes('faq') && path_segments.length > 2) { //In in an FAQ page, but not the main FAQ page + //Remove all segements after 'faq' and before the last segment (which is the question) + let faqIndex = path_segments.indexOf('faq'); + let modifiedSegments = [...path_segments]; + modifiedSegments.splice(faqIndex + 1, modifiedSegments.length - faqIndex - 2); + this.updateBreadcrumbs(modifiedSegments); } else { this.updateBreadcrumbs(path_segments); }