diff --git a/utils/entity-actions/entity-actions.component.ts b/utils/entity-actions/entity-actions.component.ts index 96d7ea49..f2e07c77 100644 --- a/utils/entity-actions/entity-actions.component.ts +++ b/utils/entity-actions/entity-actions.component.ts @@ -180,7 +180,7 @@ export class EntityActionsComponent implements OnInit { isRouteAvailable(routeToCheck: string) { for (let i = 0; i < this.router.config.length; i++) { let routePath: string = this.router.config[i].path; - if (routePath == routeToCheck) { + if (routePath == routeToCheck || routeToCheck.split('/')[0] == routePath) { return true; } }