Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

fix(web): add canonical urls to registry SEO fallback metadata

Richie McIlroy931f95d946dc
diff --git a/apps/web/app/(site)/[slug]/page.tsx b/apps/web/app/(site)/[slug]/page.tsx
index 40fa75945..9f9f17322 100644
--- a/apps/web/app/(site)/[slug]/page.tsx
+++ b/apps/web/app/(site)/[slug]/page.tsx
@@ -23,9 +23,13 @@ export async function generateMetadata(props: Props): Promise<Metadata> {
title: metadata.title,
description: metadata.description,
keywords: metadata.keywords,
+ alternates: {
+ canonical: `https://cap.so/${params.slug}`,
+ },
openGraph: {
title: metadata.title,
description: metadata.description,
+ url: `https://cap.so/${params.slug}`,
images: [metadata.ogImage],
},
};