Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config.yml 404 error depending on URL #999

Closed
OrdinaryJellyfish opened this issue Jan 10, 2018 · 2 comments
Closed

Config.yml 404 error depending on URL #999

OrdinaryJellyfish opened this issue Jan 10, 2018 · 2 comments

Comments

@OrdinaryJellyfish
Copy link

- Do you want to request a feature or report a bug?
Report a bug
- What is the current behavior?
When typing in /admin, it reports a 404 in finding config.yml (it redirects to /admin#/). When typing in /admin/, it works (it redirects to /admin/#/).
- If the current behavior is a bug, please provide the steps to reproduce.
Rather than entering /admin/ or /admin/# when trying to access Netlify CMS, type in /admin.
- What is the expected behavior?
Expected behavior is to find the config.yml file at /admin/config.yml rather than /admin#/config.yml.

- Please mention your CMS, node.js, and operating system version.

Netlify CMS 1.0, Node.js 6.12.3

- Please link or paste your config.yml below if applicable.

backend:
  name: git-gateway
  branch: master # Branch to update (optional; defaults to master)
  
publish_mode: editorial_workflow
media_folder: "images"

collections:
  - name: "scripts" # Used in routes, e.g., /admin/collections/blog
    label: "Script Page" # Used in the UI
    folder: "_posts" # The path to the folder where the documents are stored
    create: true # Allow users to create new documents in this collection
    slug: "{{year}}-{{month}}-{{day}}-{{slug}}" # Filename template, e.g., YYYY-MM-DD-title.md
    fields: # The fields for each document, usually in front matter
      - {label: "Layout", name: "layout", widget: "hidden", default: "script"}
      - {label: "Script Name", name: "title", widget: "string"}
      - {label: "GitHub Username", name: "gh_username", widget: "string"}
      - {label: "Repository Name", name: "repo_name", widget: "string"}
      - {label: "Screenshot", name: "screenshot", widget: "image", required: false}
      - {label: "Documentation URL", name: "doc_url", widget: "string"}
      - label: "Category"
        name: "categories"
        widget: "select"
        options:
         - { label: "Blog", value: "Blog" }
         - { label: "Documentation", value: "Documentation" }
         - { label: "Other", value: "Other" }
      - label: "Does this repository use Netlify CMS?"
        name: "cms"
        widget: "select"
        options:
         - { label: "No", value: "false" }
         - { label: "Yes", value: "true" }
      - {label: "Description", name: "body", widget: "markdown"}
@tech4him1
Copy link
Contributor

tech4him1 commented Jan 10, 2018

Closed as duplicate of #332. The discussion there explains why we chose not to change this.

@TristianK3604 I have been trying to reproduce this, though, so that we can document a fix, can you link your repo?

@verythorough
Copy link
Contributor

Helped a friend who ran into this same issue today. In their case, we ended up solving it by changing their "Pretty URLs" setting in the Netlify site settings.
pretty-urls

Posting here since it might help others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants