From 7c22ef852ab1f97da5e865699b6a47c50ab1c07d Mon Sep 17 00:00:00 2001 From: Dan Lackner Date: Wed, 11 Feb 2026 08:53:56 -0500 Subject: [PATCH] fix to light up engage on navigation --- components/navigation/MobileNavigation.tsx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/components/navigation/MobileNavigation.tsx b/components/navigation/MobileNavigation.tsx index 4c02622..3c83477 100644 --- a/components/navigation/MobileNavigation.tsx +++ b/components/navigation/MobileNavigation.tsx @@ -757,7 +757,15 @@ export default function MobileNavigation() {
{desktopNav.mainMenuItems.map((item) => { - const isActive = item.href && (item.href === '/' ? pathname === '/' : pathname.startsWith(item.href)); + const isActive = item.href && (item.href === '/' ? pathname === '/' : (() => { + if (pathname.startsWith('/discover/property/')) { + if (contextParam === 'engage' && item.href === '/engage') return true; + if (contextParam === 'buybox' && item.href === '/discover') return true; + if (!contextParam && item.href === '/discover') return true; + return false; + } + return pathname.startsWith(item.href); + })()); const isSubmenuOpen = openSubmenus[item.name]; return (