decaporg / decaporg/decap-cms

Preview looks for images with relative path in the admin folder

Open
#6,303 2 comments 3 reactions 0 assignees View on GitHub
type: bug
Dominant language
JavaScript
Stars
19.4k
Forks
3.1k
Avg merge
1d 14h
Merged PRs (30d)
9

Description

Images do not show up in the preview.
When looking at the console log its looking for the images in the admin folder
`GET https://www.saberd.com/admin/banner.png [HTTP/2 404 Not Found 77ms] `

What i have in markdown:
`![new banner](banner.png "The new banner")`

**CMS config**
```yaml
media_folder: "/static/images"
collections:
- name: "blog" # Used in routes, e.g., /admin/collections/blog
label: "Post" # Used in the UI
folder: "content/post" # The path to the folder where the documents are stored
path: "{{slug}}/index"
create: true # Allow users to create new documents in this collection
nested:
depth: 3
```

**Applicable Versions:**
netlify-cms-app 2.15.69
netlify-cms-core 2.54.8
netlify-cms 2.10.189

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.