mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-08 03:53:59 -05:00
Merge pull request #201 from MAGICGrants/header-links-fix
fix: handle full urls in header links
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user