-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Open
Labels
area: media-libraryarea: slugstype: bugcode to address defects in shipped codecode to address defects in shipped code
Description
To Reproduce
Have config like this:
backend:
name: "git-gateway"
local_backend: true
media_folder: "/static/assets"
public_folder: "/assets"
slug:
clean_accents: true
encoding: "ascii"
collections:
- name: "content"
label: "Content"
folder: "content"
media_folder: "{{media_folder}}/{{slug}}"
public_folder: "{{public_folder}}/{{slug}}"
create: true
fields:
- label: "Title"
name: "title"
widget: "string"
- label: "Image"
name: "image"
widget: "image"
allow_multiple: false
- Create a new item
- Set title to 'foo' (or don't set it at all)
- Upload some image and choose it in the second widget
- Change the title to 'bar'
- Publish
Expected behavior
An image is uploaded to /static/assets/bar/filename.png
and image: /assets/bar/filename.png
is stored in /content/bar.md
Observed behavior
Image is uploaded to correct path /static/assets/bar/filename.png
, but /content/bar.md
contains image: /assets/foo/filename.png
Applicable Versions:
- Netlify CMS version:
netlify-cms-app 2.15.11; netlify-cms-core 2.40.6; netlify-cms 2.10.131
(installed from CDN) - Git provider: Happens with both local dev server and Netlify Git gateway
Metadata
Metadata
Assignees
Labels
area: media-libraryarea: slugstype: bugcode to address defects in shipped codecode to address defects in shipped code