11ty / 11ty/dev-server

Dev server can't differentiate between identically named folders with unique capitalization

Open
#117 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
109
Forks
20
Avg merge
1m
Merged PRs (30d)
1

Description

Sorry for the somewhat spotty description, but the mechanics of how this works kinda elude me.

If you have two or more files permalinked to identically named folders, with different capitalization (e.g. "/ARTICLES/index.html" and "/articles/index.html"), the dev server appears to randomly pick one of the two folders to prefer. Afterwards, any link to any folder with that name, regardless of capitalization, will redirect to this chosen folder. This is not great since web hosts can tell the difference, so anyone who needs different capitalizations can't test it.

Additionally, the actual folder name shown in the search bar remains identical to the link, even if it's connected to a different folder, so anyone who accidentally capitalizes a folder name somewhere either won't realize they've made a mistake until much later, or will continually get the wrong page for no apparent reason.

Contributor guide

No contributing guide indexed for this repository

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 by reproducing the issue with permalinked /ARTICLES/index.html and /articles/index.html, then trace the dev server's path resolution and redirect handling. Done means differently capitalized folders remain distinct, links resolve to the requested folder, and the displayed path matches the folder actually served.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
devtools
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.