Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/app/reports/[category]/[slug]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,9 @@ export async function generateMetadata({ params }: Props): Promise<Metadata> {
if (!report) return {};

const canonical = `${SITE.url}/reports/${category}/${slug}`;
const ogImage = report.ogImage ?? `${SITE.url}/opengraph-image`;
// Default to the per-report dynamic OG image (opengraph-image.tsx in this
// segment), not the site-wide generic one.
const ogImage = report.ogImage ?? `${canonical}/opengraph-image`;
const social = `${report.title} · OpenChainBench`;

return {
Expand Down
Loading