Images 404 once published, but appear in the writing room

Hi there, my client is having problems with images not appearing on the front-end once a project is published/previewed.

All images appear in the library in the writing room, but once published or previewed they seem to randomly 404 on the built site, with no clue as to why.

Website uses NUXT and Netlify as a static build, and slices without slice machine.

I note that all these images appear correctly uploaded in the back-end, but the majority seem to 404 at the prismic end eg

Any idea what is going on? This is frustrating for my client and we'd like to get to the bottom of it asap

Hi Team,

I'll be happy to help debug this.

Can you provide me with one of the original images so I can test it on my end? (be careful discourse adds compression here too)


Thanks for the reply, I've done some debugging while waiting for a reply over the last few days, and it seems the client was adding an ampersand into the filenames.

On the writing room side it would upload as

But when processed it appears as


It seems either imgix or your system replaces the & with both the %25 and %26 eg

Either way a short term fix was to remove the ampersand

OK great, I'm glad you found where the issue was coming from this really helps.

I checked Imgix's website I they state that it's not possible to have special characters in filenames:

Here's the list of characters to avoid:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.