Description
The dynamic help article route app/help/[category]/[slug]/page.tsx does not export a generateMetadata function. Every help article renders with the same generic page title, making them undiscoverable by search engines and invisible to link-preview scrapers.
Tasks
- Add
generateMetadata({ params }) to app/help/[category]/[slug]/page.tsx.
- Set
title, description, and openGraph from the article's frontmatter content.
- Ensure the canonical URL is set correctly.
- Follow the pattern established in
app/sitemap.ts.
Acceptance Criteria
- Each help article has a unique
<title> and <meta name="description">.
- Open Graph tags are populated correctly for link previews.
- Canonical URL matches the article's public URL.
Description
The dynamic help article route
app/help/[category]/[slug]/page.tsxdoes not export agenerateMetadatafunction. Every help article renders with the same generic page title, making them undiscoverable by search engines and invisible to link-preview scrapers.Tasks
generateMetadata({ params })toapp/help/[category]/[slug]/page.tsx.title,description, andopenGraphfrom the article's frontmatter content.app/sitemap.ts.Acceptance Criteria
<title>and<meta name="description">.