Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudinary: double encoding for image urls #1407

Open
chindris opened this issue Aug 28, 2023 · 0 comments
Open

Cloudinary: double encoding for image urls #1407

chindris opened this issue Aug 28, 2023 · 0 comments
Assignees
Labels
gatsby Gatsby infrastructure and features.

Comments

@chindris
Copy link
Contributor

When there are special characters, like spaces, inside the original image url, the end result on the FE is double encoded. That is because the url is once encoded by the CMS, and once by the responsive image resolver in the FE (most probably by the cloudinary SDK).

One option would be to just decode the URI before calling buildResponsiveImage()

@chindris chindris self-assigned this Aug 28, 2023
@chindris chindris added the gatsby Gatsby infrastructure and features. label Aug 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
gatsby Gatsby infrastructure and features.
Projects
None yet
Development

No branches or pull requests

1 participant