Skip to content

Commit

Permalink
Home fix
Browse files Browse the repository at this point in the history
  • Loading branch information
remko48 committed Feb 12, 2024
1 parent e5d678f commit 4f877f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pwa/src/hooks/useHeaderTopNavItems.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export const useHeaderTopNavItems = (optionalData?: THeaderTopNavItem[]) => {
const prefixedPathname =
process.env.GATSBY_USE_GITHUB_REPOSITORY_NAME_AS_PATH_PREFIX === "true"
? `/${process.env.GATSBY_GITHUB_REPOSITORY_NAME}${current.pathname}`
: `${current.pathname}/`;
: `${current.pathname}${current.pathname !== "/" ? "/" : ""}`;

const isCurrentRoute = (): boolean => {
if (prefixedPathname === gatsbyContext.location.pathname) return true;
Expand Down

0 comments on commit 4f877f5

Please sign in to comment.