We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 12fbec2 commit 5480fe8Copy full SHA for 5480fe8
src/pages/[...lang]/[...about].astro
@@ -25,7 +25,8 @@ export function getStaticPaths() {
25
const lang = getLangFromUrl(Astro.url);
26
const slug = getUrlWithoutLang(Astro.url);
27
const t = useTranslations((lang ?? defaultLang) as keyof typeof languages);
28
-const page = (await getEntry("pages", `${lang}/${slug}`))!;
+const contentId = lang === "en" ? "about" : "acerca-de";
29
+const page = (await getEntry("pages", `${lang}/${contentId}`))!;
30
const { Content } = await page.render();
31
---
32
0 commit comments