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}` diff --git a/src/js/hooks/seo/useClimbSeo.ts b/src/js/hooks/seo/useClimbSeo.ts index d58f6a0aa..f77f52d4a 100644 --- a/src/js/hooks/seo/useClimbSeo.ts +++ b/src/js/hooks/seo/useClimbSeo.ts @@ -48,5 +48,5 @@ export const useClimbSeo = ({ climb }: ClimbSeoProps): SeoHookType => { */ const getRandomPreviewImages = (list: MediaWithTags[]): string[] => { const shortList = shuffle(list.slice(0, 10)) // shuffle the first 10 - return shortList.slice(0, 4).map(image => (`${CLIENT_CONFIG.CDN_BASE_URL}/${image.mediaUrl}?w=1200&ch=630&cy=center&format=jpg&q=85`)) + return shortList.slice(0, 4).map(image => (`${CLIENT_CONFIG.CDN_BASE_URL}${image.mediaUrl}?w=1200&ch=630&cy=center&format=jpg&q=85`)) }