Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.

Commit 558275a

Browse files
committed
fix root canonical url
1 parent e60167b commit 558275a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/[[...slug]]/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ export async function generateMetadata({
6868
card: 'summary_large_image',
6969
},
7070
alternates: {
71-
canonical: `${BASE_URL}/docs/${doc.slug}`,
71+
canonical: doc.slug ? `${BASE_URL}/docs/${doc.slug}` : `${BASE_URL}/docs`,
7272
},
7373
}
7474
}

0 commit comments

Comments
 (0)