diff --git a/layouts/AppMenuItem.vue b/layouts/AppMenuItem.vue index 48dc1ee11..b850bcf9b 100644 --- a/layouts/AppMenuItem.vue +++ b/layouts/AppMenuItem.vue @@ -46,7 +46,9 @@ export default { }, methods: { isActiveRootmenuItem(menuitem) { - return menuitem.children && !menuitem.children.some((item) => item.to === `/${this.$router.currentRoute.value.name}` || (item.children && item.children.some((it) => it.to === `/${this.$router.currentRoute.value.name}`))); + return ( + menuitem.children && !menuitem.children.some((item) => item.to === `/${this.$router.currentRoute.value?.name?.replace('-', '/')}` || (item.children && item.children.some((it) => it.to === `/${this.$router.currentRoute.value.name}`))) + ); } } };