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.
2 parents c6f5f6c + d948934 commit 7501b2cCopy full SHA for 7501b2c
app/blog/[...slug]/page.tsx
@@ -75,9 +75,7 @@ export async function generateMetadata({
75
}
76
77
export const generateStaticParams = async () => {
78
- const paths = allBlogs.map((p) => ({ slug: p.slug.split('/') }))
79
-
80
- return paths
+ return allBlogs.map((p) => ({ slug: p.slug.split('/').map((name) => decodeURI(name)) }))
81
82
83
export default async function Page({ params }: { params: { slug: string[] } }) {
0 commit comments