From 83493a1abc824c1ebb51cfa7ff108a852d34aa48 Mon Sep 17 00:00:00 2001 From: "k.triantafyllou" Date: Mon, 18 Jan 2021 16:49:31 +0000 Subject: [PATCH] [Library | Trunk]: Sidebar: IsActive add fragment case git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60269 d315682c-612b-4755-9ff5-7f18f6832af3 --- dashboard/sharedComponents/sidebar/sideBar.component.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dashboard/sharedComponents/sidebar/sideBar.component.ts b/dashboard/sharedComponents/sidebar/sideBar.component.ts index 1bcda532..5fc26903 100644 --- a/dashboard/sharedComponents/sidebar/sideBar.component.ts +++ b/dashboard/sharedComponents/sidebar/sideBar.component.ts @@ -38,10 +38,9 @@ export class SideBarComponent implements OnInit { (subItem && this.activeItem === item.id && this.activeSubItem === subItem.id); } else { if (subItem) { - return MenuItem.isTheActiveMenu(subItem, this.router.url.split('?')[0]) + return MenuItem.isTheActiveMenu(subItem, this.router.url.split('?')[0]) || MenuItem.isTheActiveMenu(subItem, this.router.url.split('#')[0]); } - //console.debug(item.route + " " + this.router.url.split('?')[0] + MenuItem.isTheActiveMenu(item,this.router.url.split('?')[0])) - return MenuItem.isTheActiveMenu(item,this.router.url.split('?')[0]); + return MenuItem.isTheActiveMenu(item,this.router.url.split('?')[0]) || MenuItem.isTheActiveMenu(item,this.router.url.split('#')[0]); } }