I have a Jekyll + Netlify CMS site, which is set up according to the docs.
I encountered a problem with copying uploaded file paths from media library page in admin. Basically, the “Copy path” button gives me a path like this
assets/uploads/file.txt and I believe it should instead give me
Of course I can prepend a
/ when using these links, but this is somewhat problematic for non-developer content editors. For example, if the editor uploaded a PDF file they later need to refer from a blog post, the rendered page will have a broken link like this:
https://example.com/2021/09/09/blog-post/assets/uploads/file.pdf, because the browser thinks the file is relative to current page, not the root.
admin/config.yml looks like this:
backend: name: git-gateway branch: main media_folder: 'assets/uploads' collections: ...
I wonder if this is an error or a designed behavior, and how I might fix the problem. Maybe I need to change my admin/config.yml?
Or maybe I can somehow force the “Copy URL” button to appear instead of the “Copy path” button. Looking through the Netlify CMS source code, such button exists and should allow copying absolute URLs but I wasn’t able to figure out the circumstances under which it would appear.