diff --git a/src/components/Header.astro b/src/components/Header.astro index 48d3fb9..1344fe8 100644 --- a/src/components/Header.astro +++ b/src/components/Header.astro @@ -1,10 +1,10 @@ --- const navLinks = [ - { href: '/', label: 'Home' }, - { href: '/about', label: 'About' }, - { href: '/events', label: 'Events' }, - { href: '/communities', label: 'Communities' }, - { href: '/apps', label: 'Apps' }, + { href: `${import.meta.env.BASE_URL}/`, label: 'Home' }, + { href: `${import.meta.env.BASE_URL}/about`, label: 'About' }, + { href: `${import.meta.env.BASE_URL}/events`, label: 'Events' }, + { href: `${import.meta.env.BASE_URL}/communities`, label: 'Communities' }, + { href: `${import.meta.env.BASE_URL}/apps`, label: 'Apps' }, ]; const currentPath = Astro.url.pathname; @@ -12,7 +12,7 @@ const currentPath = Astro.url.pathname;