Skip to content

Commit

Permalink
fix root canonical url
Browse files Browse the repository at this point in the history
  • Loading branch information
davemooreuws committed Oct 15, 2024
1 parent e60167b commit 558275a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/[[...slug]]/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export async function generateMetadata({
card: 'summary_large_image',
},
alternates: {
canonical: `${BASE_URL}/docs/${doc.slug}`,
canonical: doc.slug ? `${BASE_URL}/docs/${doc.slug}` : `${BASE_URL}/docs`,
},
}
}
Expand Down

0 comments on commit 558275a

Please sign in to comment.