From 9a25aca2d724e6846caaa30847112fdc20e8cb95 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 7 Nov 2024 11:39:10 -0500 Subject: [PATCH] fix: invalid og:image for all areas --- src/app/(default)/area/[[...slug]]/page.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/(default)/area/[[...slug]]/page.tsx b/src/app/(default)/area/[[...slug]]/page.tsx index cb505f0e9..3a45406cc 100644 --- a/src/app/(default)/area/[[...slug]]/page.tsx +++ b/src/app/(default)/area/[[...slug]]/page.tsx @@ -199,7 +199,7 @@ export async function generateMetadata ({ params }: PageWithCatchAllUuidProps): const name = sanitizeName(areaName) - const previewImage = media.length > 0 ? `${CLIENT_CONFIG.CDN_BASE_URL}/${media[0].mediaUrl}?w=1200q=75` : null + const previewImage = media.length > 0 ? `${CLIENT_CONFIG.CDN_BASE_URL}${media[0].mediaUrl}?w=1200&q=75` : null const description = `Community knowledge • ${wall}${name}`