[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:
parent
c63b03402e
commit
83493a1abc
|
@ -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]);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue