Correcting overselecting menue
This commit is contained in:
1 parent
e877c36a3d
commit
ae306bb89e
1 file changed
+1
-1
@@ -63,6 +63,6 @@ export class SidenavComponent {
|
||||
}
|
||||
|
||||
is_current_page(menu_item: MenuItem) {
|
||||
return this.router.url.indexOf(`${menu_item.link}/`) > -1;
|
||||
return this.router.url.startsWith(menu_item.link);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user