diff --git a/src/app/components/layout/layout.component.ts b/src/app/components/layout/layout.component.ts index 780f4001c..f6f79ec89 100644 --- a/src/app/components/layout/layout.component.ts +++ b/src/app/components/layout/layout.component.ts @@ -74,6 +74,10 @@ export class LayoutComponent implements OnInit, OnDestroy { ) {} ngOnInit() { + this.hideSidenav = this.hideConditions.some(el => + this.router.routerState.snapshot.url.includes(el) + ); + if (!this.minimizeSidenav) { this.expandedSidenav = this.getSidenavState(); } else {