Skip to content

Commit

Permalink
fix complex url encoding (#1088)
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkas authored Oct 17, 2024
1 parent d60bd03 commit fc99fae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/web/src/utils/images.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export function getCloudinaryMediaUrl({ media, width }: GetCloudinaryMediaUrlPar

const imageWidth = `w_${width * 2}`;
const imageFormat = 'f_webp';
const imageUrl = encodeURI(media);
const imageUrl = encodeURIComponent(media);
const fetchOptions = [imageWidth, imageFormat, imageUrl].join('/');

const url = `https://res.cloudinary.com/${CLOUDINARY_CLOUD_NAME}/image/fetch/${fetchOptions}`;
Expand Down

0 comments on commit fc99fae

Please sign in to comment.