Merge branch 'main' into DOC-186-Page-Margins

This commit is contained in:
Timur Ercan
2023-03-23 13:00:22 +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 (