Skip to content

Commit

Permalink
fix: extra slash in climb page SEO image
Browse files Browse the repository at this point in the history
  • Loading branch information
julianlam committed Nov 8, 2024
1 parent 9a25aca commit bd3557c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/js/hooks/seo/useClimbSeo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`))
}

0 comments on commit bd3557c

Please sign in to comment.