diff --git a/pwa/src/templates/templateParts/header/HeaderTemplate.tsx b/pwa/src/templates/templateParts/header/HeaderTemplate.tsx index a68386c1e..5cfb7afb1 100644 --- a/pwa/src/templates/templateParts/header/HeaderTemplate.tsx +++ b/pwa/src/templates/templateParts/header/HeaderTemplate.tsx @@ -46,12 +46,13 @@ export const HeaderTemplate: React.FC = ({ layoutClassName }; React.useEffect(() => { + console.log({ pathname }); setIsHomePage( pathname === "/" || (process.env.GATSBY_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true" && pathname === `/${process.env.GATSBY_GITHUB_REPOSITORY_NAME}/`), ); - }, [location]); + }, [pathname]); const primaryTopNavItems = [ {