Unable to select images from Cloudinary

We are using the Cloudinary media library integration with our Netlify CMS.

In our config settings we are using the output_filename_only: true option.

We have had this config setting since late 2019 and all has been working fine, but recently the integration seems to be broken because the image path is not being correctly applied.

  1. From the Netlify CMS for an image we select “Choose an image” or “Choose different image” which opens up the Cloudinary modal.
  2. Select an image and click “Insert”
  3. The image appears as broken, and this is also the case on the actual site when published (i.e. this is not just a preview issue).

On inspecting the element it appears that an erroneous / is prepended to the filename in the src tag. e.g.

src="/image_name.jpg"

instead of

src="image_name.jpg"

Sub-directories also seem to no longer be taken into account. e.g. for an image in the MyDirectory directory it will show

src="/image_name.jpg"

instead of

src="MyDirectory/image_name.jpg"

Is anyone able to shed some light on what may have caused this issue?

Hi there! Thanks for your interest in Netlify CMS. Looks like you posted your question a little while ago, but that you haven’t received a solution yet. Here’s where you might get more help:

netlifycms.org - the site houses our extensive documentation that likely contains helpful information to get you back on track.

netlify cms slack - join our friendly slack channel and chat with other cms pros to get the help you need.

GitHub Issues - think you’ve found a bug, or would like to make a feature request? Make your voice heard here. Netlify CMS is open source - PRs and other contributions are also welcome!

Stack Overflow Check StackOverflow for questions tagged “Netlify CMS” if you don’t get an answer in the Slack or the GH issues. StackOverflow reaches a worldwide audience of knowledgeable people.

Your question will be left open here for anyone to comment - but we encourage you to check out the above resources if you are still looking for a solution!