Merge pull request #201 from MAGICGrants/header-links-fix

fix: handle full urls in header links
This commit is contained in:
Artur
2025-12-22 19:56:25 -03:00
committed by GitHub

View File

@@ -55,7 +55,7 @@ const Header = () => {
fundHeaderNavLinks[fund.slug].map((link) => (
<CustomLink
key={link.title}
href={`/${fundSlug}/${link.href}`}
href={link.href.startsWith('https://') ? link.href : `/${fundSlug}/${link.href}`}
className={
link.isButton
? 'rounded border border-primary bg-transparent px-4 py-2 font-semibold text-primary hover:border-transparent hover:bg-primary hover:text-white'