diff --git a/dmp-frontend/src/app/ui/misc/breadcrumb/navigation-breadcrumb.component.ts b/dmp-frontend/src/app/ui/misc/breadcrumb/navigation-breadcrumb.component.ts index 90188367c..fa5cc1048 100644 --- a/dmp-frontend/src/app/ui/misc/breadcrumb/navigation-breadcrumb.component.ts +++ b/dmp-frontend/src/app/ui/misc/breadcrumb/navigation-breadcrumb.component.ts @@ -41,7 +41,7 @@ export class NavigationBreadcrumbComponent extends BaseComponent { .pipe( map(() => { const routeSnapshot = this.router.routerState.snapshot.root; - const breadcrumbs = this._buildBreadCrumbs(routeSnapshot).filter(x => !!x.title); + const breadcrumbs = this._buildBreadCrumbs(routeSnapshot).filter(x => !!x.title && !x.hideItem); return breadcrumbs; }), takeUntil(this._destroyed), diff --git a/dmp-frontend/src/common/ui/common-ui.module.ts b/dmp-frontend/src/common/ui/common-ui.module.ts index 4d6b21c16..a7c5b99f9 100644 --- a/dmp-frontend/src/common/ui/common-ui.module.ts +++ b/dmp-frontend/src/common/ui/common-ui.module.ts @@ -1,5 +1,6 @@ import { CommonModule } from '@angular/common'; import { NgModule } from '@angular/core'; +import { RouterModule } from '@angular/router'; import { FormattingModule } from '@app/core/formatting.module'; import { NavigationBreadcrumbComponent } from '@app/ui/misc/breadcrumb/navigation-breadcrumb.component'; import { SecureImagePipe } from '@common/http/image/secure-image.pipe'; @@ -11,7 +12,8 @@ import { TranslateModule } from '@ngx-translate/core'; CommonModule, MaterialModule, TranslateModule, - FormattingModule + FormattingModule, + RouterModule ], declarations: [ SecureImagePipe,