diff --git a/src/content/docs/en/guides/upgrade-to/v5.mdx b/src/content/docs/en/guides/upgrade-to/v5.mdx index aecaeab2ff96c..e369deaec9e85 100644 --- a/src/content/docs/en/guides/upgrade-to/v5.mdx +++ b/src/content/docs/en/guides/upgrade-to/v5.mdx @@ -241,10 +241,10 @@ See the instructions below for updating an existing content collection with Mark }); ``` -3. **Change references from `slug` to `id`**. Content layer collections do not have a `slug` field. Instead, all updated collections will have an `id`. +3. **Change references from `slug` to `id`**. Content layer collections do not have a `slug` field. Instead, all updated collections will have an `id`. You may also need to update your file name to match an updated getStaticPaths() parameter: ```astro ins={7} del={6} - // src/pages/[slug].astro + // src/pages/[id].astro --- export async function getStaticPaths() { const posts = await getCollection('blog');