decaporg / decaporg/decap-cms

[Cloudinary] Image URL in Editor preview broken with output_filename_only option

Open
#1,934 19 comments 9 reactions 0 assignees View on GitHub
pinned
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**
When using the Cloudinary Media Library integration, I want to use the `output_filename_only` option to take advantage of URL transformations. However, this option seems to break the rendering of the preview images.

**To Reproduce**
Switch Cloudinary image assets to `output_filename_only` and observer the broken image links in the editor.

**Expected behavior**
We would expect the editor preview components to build the preview URL for the image to append the the image filename.

**Screenshots**
![screenshot 2018-12-04 22 05 50](https://user-images.githubusercontent.com/2822402/49489550-2db88500-f811-11e8-9c03-7a480995233a.png)

**Applicable Versions:**
Netlify CMS 2.3.0

**CMS configuration**
https://gist.github.com/ksherman/cb5b319858b8ea06fbf638818f839d84.js

**Additional context**
You all are awesome and I know this feature was juuuuust released :D

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.