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

Slugs do not preserve capitalization #5491

Closed
bmackinney opened this issue Jun 10, 2021 · 1 comment
Closed

Slugs do not preserve capitalization #5491

bmackinney opened this issue Jun 10, 2021 · 1 comment
Labels
area: slugs type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@bmackinney
Copy link
Contributor

Description
Creating entries, there are situations where I want the filename to be camelCased. I cannot achieve this without manually creating the files.

To Reproduce

  1. Create a folder collection entry with a title or other identifier_field that is written in camelCase.

Expected behavior
The filename to be camelCase/preserve capitalization

Screenshots
image

Applicable Versions:

  • Netlify CMS version: [e.g. 2.10.138]
  • Git provider: Local
  • OS: OSX
  • Browser version [e.g. chrome 91]
@bmackinney bmackinney added the type: bug code to address defects in shipped code label Jun 10, 2021
@erezrokah
Copy link
Contributor

Hi @bmackinney, this is actually the intended behavior:
https://github.com/netlify/netlify-cms/blob/2d4cb37d639088fe948f939bc232839786caa41a/packages/netlify-cms-core/src/lib/formatters.ts#L92

I think this is covered by #445, so I'm closing the issue.

I recommend adding your use case to that issue (please state the reason you require camelCased files).

@erezrokah erezrokah added area: slugs type: feature code contributing to the implementation of a feature and/or user facing functionality and removed type: bug code to address defects in shipped code labels Jun 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: slugs type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

2 participants