decaporg / decaporg/decap-cms

Image preview with relative path not displayed

Open
#7,772 0 comments 1 reaction 0 assignees View on GitHub
area: extensions/widgets/image type: bug
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

**Describe the bug**
If you use the CMS as a standalone admin panel with its own configuration for a project with multiple domains, the relative link to the image preview cannot find the image.

Image

However, if you go to the media assets section, all the images will be displayed.
Image

**To Reproduce**
Steps to reproduce the behavior. For example:
1. Deploy the CMS on a separate domain
2. Add an image to the CMS media assets
3. Add a collection item with an image
4. See image preview error

**Expected behavior**
Image previews in collection component are displayed in the same way as in media assets

**Applicable Versions:**
- Decap CMS version: 3.11.0
- Git provider: GitLab
- OS: macOS
- Browser version Google Chrome 146.0.7680.165
- Node.JS version: v22.17.1

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.