8000 Fix incorrect route param (#79795) · vercel/next.js@b5b2a6c · GitHub
[go: up one dir, main page]

Skip to content

Commit b5b2a6c

Browse files
oduntaneijjk
andauthored
Fix incorrect route param (#79795)
In the example under the "Generated Metadata" section of the page, the route is defined as `/app/blog/[slug]/page.tsx`, but the Props type uses `id` instead of `slug`. This fixes the mismatch to reflect the actual dynamic route segment Co-authored-by: JJ Kasper <jj@jjsweb.site>
1 parent 323ec0a commit b5b2a6c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/01-app/01-getting-started/13-metadata-and-og-images.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ You can use [`generateMetadata`](/docs/app/api-reference/functions/generate-meta
7272
import type { Metadata, ResolvingMetadata } from 'next'
7373

7474
type Props = {
75-
params: Promise<{ id: string }>
75+
params: Promise<{ slug: string }>
7676
searchParams: Promise<{ [key: string]: string | string[] | undefined }>
7777
}
7878

0 commit comments

Comments
 (0)
0