[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
This commit is contained in:
k.triantafyllou 2021-01-18 16:49:31 +00:00
parent c63b03402e
commit 83493a1abc
1 changed files with 2 additions and 3 deletions

View File

@ -38,10 +38,9 @@ export class SideBarComponent implements OnInit {
(subItem && this.activeItem === item.id && this.activeSubItem === subItem.id); (subItem && this.activeItem === item.id && this.activeSubItem === subItem.id);
} else { } else {
if (subItem) { 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]) || MenuItem.isTheActiveMenu(item,this.router.url.split('#')[0]);
return MenuItem.isTheActiveMenu(item,this.router.url.split('?')[0]);
} }
} }