Skip to content

Commit

Permalink
Fix footer navigation (#239)
Browse files Browse the repository at this point in the history
  • Loading branch information
IstoraMandiri authored Dec 16, 2024
1 parent cf9e1b0 commit 0fe149e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion components/main-nav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export function MainNav({ items, lang = fallbackLng }: MainNavProps) {
return (
<Link
key={index}
href={!item?.external ? `/${lang}/${item.href}` : item.href}
href={!item?.external ? `/${lang}${item.href}` : item.href}
target={item.external ? "_blank" : undefined}
className={cn(
"flex cursor-pointer items-center border-b-2 uppercase",
Expand Down
2 changes: 1 addition & 1 deletion components/site-footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export function SiteFooter({ lang }: LangProps["params"]) {
!onlyHeader && (
<Link
key={indexKey}
href={href}
href={external ? href : `/${lang}${href}`}
target={external ? "_blank" : undefined}
>
<ItemLabel label={title} />
Expand Down
2 changes: 1 addition & 1 deletion components/site-header-mobile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function SiteHeaderMobile({ lang }: LangProps["params"]) {
return (
<NextLink
key={index}
href={item?.external ? item.href : `/${lang}/${item.href}`}
href={item?.external ? item.href : `/${lang}${item.href}`}
onClick={() => setHeader(false)}
className="border-b-2 border-white p-4 uppercase"
>
Expand Down

0 comments on commit 0fe149e

Please sign in to comment.