Skip to content

Commit c83c6bd

Browse files
committed
Fix more links
1 parent 43ba645 commit c83c6bd

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

src/components/Footer.astro

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ const t = useTranslations(lang);
1313
class="flex flex-col text-xl sm:text-base sm:flex-row gap-x-8 gap-y-3 items-center justify-center"
1414
>
1515
<a
16-
href={new URL(`${lang}/site-notice`, Astro.url)}
16+
href={`${import.meta.env.BASE_URL}/${lang}/site-notice`}
1717
class="hover:underline transition"
1818
>
1919
{t("nav.site-notice")}
2020
</a>
2121
<a
22-
href={new URL(`${lang}/privacy-policy`, Astro.url)}
22+
href={`${import.meta.env.BASE_URL}/${lang}/privacy-policy`}
2323
class="hover:underline transition"
2424
>
2525
{t("nav.privacy-policy")}
2626
</a>
2727
<a
28-
href={new URL(`${lang}/faq`, Astro.url)}
28+
href={`${import.meta.env.BASE_URL}/${lang}/faq`}
2929
class="hover:underline transition">{t("nav.faq")}</a
3030
>
3131
<a
32-
href={new URL(`${lang}/contact`, Astro.url)}
32+
href={`${import.meta.env.BASE_URL}/${lang}/contact`}
3333
class="hover:underline transition">{t("nav.contact")}</a
3434
>
3535
</div>
@@ -57,11 +57,13 @@ const t = useTranslations(lang);
5757
</a>
5858
</div>
5959
<div class="flex gap-6 justify-center text-xl sm:text-base">
60-
<a href={new URL(`de`, Astro.url)} class="hover:underline transition"
61-
>Deutsch</a
60+
<a
61+
href={`${import.meta.env.BASE_URL}/de`}
62+
class="hover:underline transition">Deutsch</a
6263
>
63-
<a href={new URL(`en`, Astro.url)} class="hover:underline transition"
64-
>English</a
64+
<a
65+
href={`${import.meta.env.BASE_URL}/en`}
66+
class="hover:underline transition">English</a
6567
>
6668
</div>
6769
</footer>

src/components/Home.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ const HomeDe = ({
219219
rel="noreferer"
220220
target="_blank"
221221
>
222-
öffentliche Matrix-Raum
222+
öffentlichen Matrix-Raum
223223
</a>
224224
.
225225
</dd>

src/components/Navigation.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Navigation as Nav } from "@/components/Navigation.tsx";
77
const lang = getLangFromUrl(Astro.url);
88
---
99

10-
<a href={new URL(`../${lang}`, Astro.url)}>
10+
<a href={`${import.meta.env.BASE_URL}/${lang}`}>
1111
<header class="flex flex-col items-center">
1212
<Image
1313
src={CTreffLogo}

0 commit comments

Comments
 (0)