dotCMS / dotCMS/core

Folders should auto-lowercase the URL/Name field on creation

Open
#35,929 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

OKR : Customer Support Team : Maintenance
Dominant language
Java
Stars
970
Forks
486
Avg merge
3d 33m
Merged PRs (30d)
170

Description

Problem Statement

When a website editor creates a new folder, the Title field auto-prefills the Name (URL) field — but does not convert the value to lowercase. This introduces inconsistent URL capitalization across the site, which can negatively impact SEO and URL hygiene.

By contrast, when a new Page Asset is created, the Title is prefilled into the URL field with spaces replaced by dashes and the entire value lowercased. Folders should behave the same way.

Steps to Reproduce
  • Log into dotCMS as a content editor.
  • Navigate to the Site Browser.
  • Create a new folder with a Title that includes uppercase letters (e.g., My New Folder).
  • Observe the auto-prefilled Name (URL) field.

Expected: my-new-folder
Actual: My New Folder (or similar — preserves original casing)

Acceptance Criteria
  • When a folder's Title is entered, the auto-prefilled Name (URL) field is automatically lowercased.
  • Spaces in the Title are replaced with dashes (or the existing separator logic) in the URL field, matching Page Asset behavior.
  • Manually typed values in the Name field are also forced to lowercase on input.
  • Existing folders are unaffected (no migration of existing URLs).
dotCMS Version

Latest

Severity

Medium - Some functionality impacted

Links

https://helpdesk.dotcms.com/a/tickets/37593

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in the Site Browser folder-creation flow and compare its Title-to-Name behavior with the Page Asset creation flow described in the issue. Verify that generated and manually entered folder names are lowercase, spaces use the existing separator logic, and existing folder URLs remain unchanged.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
content, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.