diff --git a/components/shared/ui/menu.tsx b/components/shared/ui/menu.tsx index 213e6688..b4a7b09a 100644 --- a/components/shared/ui/menu.tsx +++ b/components/shared/ui/menu.tsx @@ -31,7 +31,7 @@ const isCurrentNavigationItemActive = (navigation: Block_Navigation, router: Nex const pathSegments = pathWithoutQuerystring.split("/"); const topLevelSegment = pathSegments[1]; const pageLink = navigation.elements.pageLink.linkedItems[0]; - return (pageLink?.system.codename === contentTypes.page.codename && pageLink.elements.url.value === topLevelSegment); + return pageLink?.system.type === contentTypes.page.codename && pageLink.elements.url.value === topLevelSegment; }; const resolveLink = (link: Readonly) => {