Merge pull request #29 from dephraiim/active-nav-bug

fix settings active bug
This commit is contained in:
Timur Ercan
2023-03-23 12:59:46 +01:00
committed by GitHub

View File

@@ -100,7 +100,9 @@ export default function TopNavigation() {
}, [session]);
navigation.forEach((element) => {
element.current = router.route.endsWith("/" + element.href.split("/")[1]);
element.current =
router.route.endsWith("/" + element.href.split("/")[1]) ||
router.route.includes(element.href.split("/")[1]);
});
return (