mirror of
https://github.com/MAGICGrants/campaign-site.git
synced 2026-01-08 20:08:05 -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) => (
|
fundHeaderNavLinks[fund.slug].map((link) => (
|
||||||
<CustomLink
|
<CustomLink
|
||||||
key={link.title}
|
key={link.title}
|
||||||
href={`/${fundSlug}/${link.href}`}
|
href={link.href.startsWith('https://') ? link.href : `/${fundSlug}/${link.href}`}
|
||||||
className={
|
className={
|
||||||
link.isButton
|
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'
|
? '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