Percent-encoded symbols in URL result in 404s

Hello,

The user madi@peppercorn.studio is returned 404s after "+" symbols are encoded as "%2B" in image paths in her repo.

Encoded image URLs don't work with Prismic's CDN
eg: image paths with "+" symbols in the URL, encoded to "%2B", break and return 404s
this is a breaking issue for my project, because I have a 3rd party library that returns encoded urls (for generating responsive src sets with Imgix)

Thanks in advance for your help.
Best

Hi Madi,

Welcome to the Prismic community,

Can you please share with me (in a private message if necessary) an example image URL so that I try to reproduce the issue on my side?

Looking forward to your reply,
Fares

Sure thing, here's an example image:

Original path: https://images.prismic.io/madeleineostoja/2209fd90-eeeb-443c-b84d-8dad9032c3cc_The+Man+in+Black.jpg?auto=format&ixlib=react-9.0.3&w=1446

Encoded URL: https://images.prismic.io/madeleineostoja/2209fd90-eeeb-443c-b84d-8dad9032c3cc_The%2BMan%2Bin%2BBlack.jpg?auto=format&ixlib=react-9.0.3&w=1446

Thanks @madi for sharing this info, I will try to reproduce and will get back to you.

Hi @madi, I apologize for the delay, I've been able to reproduce the issue and I have created an issue and passed it to our dev team and we will let you know in case of any updates.

This thread is being monitored as an open ticket in the issue tracker. We will update this post as we get more information. If you have a similar use-case, you can ‘Flag’ this topic to reopen.