Skip to content

Commit 5480fe8

Browse files
committed
workaround
1 parent 12fbec2 commit 5480fe8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/pages/[...lang]/[...about].astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ export function getStaticPaths() {
2525
const lang = getLangFromUrl(Astro.url);
2626
const slug = getUrlWithoutLang(Astro.url);
2727
const t = useTranslations((lang ?? defaultLang) as keyof typeof languages);
28-
const page = (await getEntry("pages", `${lang}/${slug}`))!;
28+
const contentId = lang === "en" ? "about" : "acerca-de";
29+
const page = (await getEntry("pages", `${lang}/${contentId}`))!;
2930
const { Content } = await page.render();
3031
---
3132

0 commit comments

Comments
 (0)