We have an issue where the URL of the images keep getting changed by Prismic. We use these links in Google Sheets and having to change them every time Prismic (for whatever reason) updates the URL is far from ideal. What's behind the changes?
Hi @isak.moller , sorry to hear you're having issues. Would you mind sending me an example of what you're seeing?
Hi @guy.proops! Sorry for the late reply. Here is a good example of our issue: UEFA Champions League Winner Betting Odds
There are meant to be logos next to the team names (see this page as an example: Premier League Winner Betting Odds 2023/24), but for some reason, Primisc seemingly changes the URL of the images which causes them to disappear after a while. It hasn't happened on all pages, but on most of them.
We are fetching the images from a Google sheet, so essentially we just copy the image URL from Prismic and then add it to the sheet.
Example image link from Prismic: https://images.prismic.io/betlounge/ZjndFUMTzAJOCl2n_trustlybettingsitesnew.jpg?auto=format,compress
Thanks, @isak.moller . I'm following up with the team and will get back to your shortly.
Best,
Guy
Hi Isak,
Can I ask why you're adding the image links directly and not adding them using the API ID?
As to why they're changing, I'm not sure. It looks like the links don't exist anymore, so maybe someone has edited the image in the repository media library or in a document. Can you confirm if this has happened or not?
Thanks.
Hi! Thanks for the reply. We have been adding the links manually to an Excel sheet because that is also where the site fetches the odds for the games. It makes it much easier when we need to add/change teams in the Excel etc. In any case, we do not change the URLs after they are added in the Excel. They sit in a hidden column even so there can be no changes by mistake either.
I looked at one of the broken links and there seem to be minimal changes that affect them not working, so we have to assume it is something on your end. Let me highlight an example below, with the first being the current and working link of the image, and the second being the old link that we had in the Excel.
https:// images.prismic.io/betlounge/93e08297-61e1-4765-9ec5-2199074ec96c_austria.png?auto=format,compress
Honestly, I'm not sure why this is, so I'll reach out to our image provider Imgix to find out why.
But if possible it's always better to get the URL through the API.
I'll get back to you once I have more info.
Thanks.
Hi Isak,
I checked with Imgix and there is nothing set up on our end that would cause a URL to transform.
Do you know when the URL transform?
From what I can see, it seems like the difference between the URLs is the addition of some /1
three different times. Is this the same change happening in all the images?
Thanks.
Yeah seems to be the /1 error on most of them. As to when, there's been no real consistency, because some are still live today while others aren't. But, we did come to the conclusion it's something happening in Google sheet rather than prismic, so that's good for you of course
Thanks for getting back to me.
I'll mark this closed then.