We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
id
1 parent b84971f commit ff457abCopy full SHA for ff457ab
src/content/docs/en/recipes/i18n.mdx
@@ -120,7 +120,7 @@ If you prefer the default language to not be visible in the URL unlike other lan
120
const pages = await getCollection('blog');
121
122
const paths = pages.map(page => {
123
- const [lang, ...slug] = page.slug.split('/');
+ const [lang, ...slug] = page.id.split('/');
124
return { params: { lang, slug: slug.join('/') || undefined }, props: page };
125
});
126
0 commit comments