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 3ea21af commit e35b762Copy full SHA for e35b762
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