diff --git a/src/components/ui/cards/CardBlog.astro b/src/components/ui/cards/CardBlog.astro index 6bde4ae..8f3ba76 100644 --- a/src/components/ui/cards/CardBlog.astro +++ b/src/components/ui/cards/CardBlog.astro @@ -20,8 +20,8 @@ interface Props { diff --git a/src/components/ui/cards/CardBlogRecent.astro b/src/components/ui/cards/CardBlogRecent.astro index 6f9f0f3..fbc430d 100644 --- a/src/components/ui/cards/CardBlogRecent.astro +++ b/src/components/ui/cards/CardBlogRecent.astro @@ -36,7 +36,7 @@ interface Props { > {blogEntry.data.description} @@ -57,7 +57,7 @@ interface Props {
diff --git a/src/components/ui/cards/CardInsight.astro b/src/components/ui/cards/CardInsight.astro index d9d61ef..7d9cda4 100644 --- a/src/components/ui/cards/CardInsight.astro +++ b/src/components/ui/cards/CardInsight.astro @@ -21,8 +21,8 @@ interface Props {
diff --git a/src/components/ui/cards/CardRelated.astro b/src/components/ui/cards/CardRelated.astro index 28d7b52..118bc92 100644 --- a/src/components/ui/cards/CardRelated.astro +++ b/src/components/ui/cards/CardRelated.astro @@ -15,8 +15,8 @@ interface Props {
diff --git a/src/components/ui/cards/CardSmall.astro b/src/components/ui/cards/CardSmall.astro index de5ec93..17aa80e 100644 --- a/src/components/ui/cards/CardSmall.astro +++ b/src/components/ui/cards/CardSmall.astro @@ -19,8 +19,8 @@ const imageClass = diff --git a/src/components/ui/cards/CardWide.astro b/src/components/ui/cards/CardWide.astro index 964f8d6..3496cf9 100644 --- a/src/components/ui/cards/CardWide.astro +++ b/src/components/ui/cards/CardWide.astro @@ -19,8 +19,8 @@ const imageClass = diff --git a/src/pages/blog/[id].astro b/src/pages/blog/[id].astro index 62a6c30..4080462 100644 --- a/src/pages/blog/[id].astro +++ b/src/pages/blog/[id].astro @@ -18,9 +18,9 @@ export async function getStaticPaths() { id.startsWith("en/") ); return blogPosts.map((post) => { - const slugWithoutLang = post.id.replace(/^en\//, ""); // Remove the "en/" prefix + const idWithoutLang = post.id.replace(/^en\//, ""); // Remove the "en/" prefix return { - params: { id: slugWithoutLang }, + params: { id: idWithoutLang }, props: { post }, }; }); diff --git a/src/pages/fr/blog/[...slug].astro b/src/pages/fr/blog/[...slug].astro index f5882e7..4a73cc9 100644 --- a/src/pages/fr/blog/[...slug].astro +++ b/src/pages/fr/blog/[...slug].astro @@ -18,9 +18,9 @@ export async function getStaticPaths() { id.startsWith("fr/") ); return blogPosts.map((post) => { - const slugWithoutLang = post.slug.replace(/^fr\//, ""); // Remove the "fr/" prefix + const idWithoutLang = post.id.replace(/^fr\//, ""); // Remove the "fr/" prefix return { - params: { lang: "fr", slug: slugWithoutLang }, + params: { lang: "fr", id: idWithoutLang }, props: { post }, }; }); @@ -34,7 +34,7 @@ const blogPosts: CollectionEntry<"blog">[] = await getCollection( ({ id }) => id.startsWith("fr/") ); const relatedPosts: CollectionEntry<"blog">[] = blogPosts.filter( - (blogEntry) => blogEntry.slug !== post.slug + (blogEntry) => blogEntry.id !== post.id ); const pageTitle: string = `${post.data.title} | ${SITE.title}`; diff --git a/src/pages/fr/insights/[...slug].astro b/src/pages/fr/insights/[...slug].astro index 4973660..26362e4 100644 --- a/src/pages/fr/insights/[...slug].astro +++ b/src/pages/fr/insights/[...slug].astro @@ -9,9 +9,9 @@ import { getCollection, render } from "astro:content"; export async function getStaticPaths() { const insightPosts = await getCollection("insights", ({ id }) => id.startsWith("fr/")); return insightPosts.map((post) => { - const slugWithoutLang = post.id.replace(/^fr\//, ''); // Remove the "fr/" prefix + const idWithoutLang = post.id.replace(/^fr\//, ''); // Remove the "fr/" prefix return { - params: { lang: 'fr', id: slugWithoutLang }, + params: { lang: 'fr', id: idWithoutLang }, props: { post }, }; }); diff --git a/src/pages/fr/products/[...slug].astro b/src/pages/fr/products/[...slug].astro index 8b78cc4..461113d 100644 --- a/src/pages/fr/products/[...slug].astro +++ b/src/pages/fr/products/[...slug].astro @@ -20,9 +20,9 @@ export async function getStaticPaths() { id.startsWith("fr/") ); return productEntries.map((product) => { - const slugWithoutLang = product.slug.replace(/^fr\//, ""); // Remove the "fr/" prefix + const idWithoutLang = product.id.replace(/^fr\//, ""); // Remove the "fr/" prefix return { - params: { lang: "fr", slug: slugWithoutLang }, + params: { lang: "fr", id: idWithoutLang }, props: { product }, }; }); diff --git a/src/pages/insights/[id].astro b/src/pages/insights/[id].astro index 187b82f..95f6b90 100644 --- a/src/pages/insights/[id].astro +++ b/src/pages/insights/[id].astro @@ -11,9 +11,9 @@ export async function getStaticPaths() { id.startsWith("en/") ); return insightPosts.map((post) => { - const slugWithoutLang = post.id.replace(/^en\//, ""); // Remove the "fr/" prefix + const idWithoutLang = post.id.replace(/^en\//, ""); // Remove the "fr/" prefix return { - params: { id: slugWithoutLang }, + params: { id: idWithoutLang }, props: { post }, }; }); diff --git a/src/pages/products/[id].astro b/src/pages/products/[id].astro index 732eea2..ccdab53 100644 --- a/src/pages/products/[id].astro +++ b/src/pages/products/[id].astro @@ -21,9 +21,9 @@ export async function getStaticPaths() { id.startsWith("en/") ); return productEntries.map((product) => { - const slugWithoutLang = product.id.replace(/^en\//, ""); // Remove the "en/" prefix + const idWithoutLang = product.id.replace(/^en\//, ""); // Remove the "en/" prefix return { - params: { id: slugWithoutLang }, + params: { id: idWithoutLang }, props: { product }, }; });