-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Description
Describe the bug
When deploying a project using DecapCMS, the first time you go to /admin/, an error message shows reading:
Error loading the CMS configuration
Config Errors:
Error: Failed to load config.yml (404)
Check your config.yml file.
It seems as if this is because the URL isn't formatted correctly. Going to /admin/ redirects me to:
When instead I should go to
To Reproduce
- Go to a project using Decap, without having logged in before (clearing cookies may help with this)
- Navigate to the /admin/ route
- Note the above error message, with the document URL path reading /admin#/
- Change the path to /admin/#/
- Note that this now works
Expected behavior
For a user to immediately go to /admin/#/
Screenshots
Applicable Versions:
- Netlify CMS version: ^2.0.0
- Git provider: Github
- OS: Windows 10
- Browser version Firefox 115.0.3 64bit
- Node.JS version: v20.3.1
CMS configuration
May not be relevant, as it's been replicated with a range of CMS configurations, however:
backend:
name: git-gateway
branch: main
local_backend: true
logo_url: https://codestitch.app/frontend/images/logo.png
media_folder: "public/assets/images/blog"
public_folder: "/assets/images/blog"
collections:
- name: "blog"
label: "Blog"
folder: "src/content/blog"
create: true
slug: "{{slug}}"
fields:
- { label: "Title", name: "title", widget: "string" }
- { label: "Description", name: "description", widget: "string" }
- { label: "Author", name: "author", widget: "string" }
- { label: "Date", name: "date", widget: "datetime" }
- { label: "Tags", name: "tags", widget: "list", default: ["post"] }
- { label: "Featured Image", name: "image", widget: "image" }
- { label: "Image Caption", name: "imageAlt", widget: "string" }
- { label: "Body", name: "body", widget: "markdown" }