Skip to content

feat(links): add support for lowercase paths#2191

Open
sonu27 wants to merge 2 commits intojackyzha0:v4from
sonu27:feat/lowercase-paths
Open

feat(links): add support for lowercase paths#2191
sonu27 wants to merge 2 commits intojackyzha0:v4from
sonu27:feat/lowercase-paths

Conversation

@sonu27
Copy link

@sonu27 sonu27 commented Nov 5, 2025

This pull request introduces a new configuration option, lowercasePaths, which allows users to enforce all generated URLs and tags to be lowercase throughout the Quartz site. This change improves URL consistency and can help avoid issues with case sensitivity across different hosting environments. The implementation touches file path slugification, tag generation, internal link transformation, and asset emission, as well as updates to documentation and tests.

Please have a look to see if there is a better way of doing it. I have tested with my own content but it might not be exhaustive.

This PR was written with a lot of help using an LLM.

Related:

@github-actions
Copy link

github-actions bot commented Nov 5, 2025

built with Refined Cloudflare Pages Action

⚡ Cloudflare Pages Deployment

Name Status Preview Last Commit
quartz ✅ Ready (View Log) Visit Preview 1275fdf

@sonu27
Copy link
Author

sonu27 commented Nov 16, 2025

@jackyzha0 @saberzero1 Just cleaned this up. Please let me know if there is a better way of doing this.

I'm not a fan of excludeExt in function slugifyFilePath(fp: FilePath, excludeExt?: boolean, lowercase?: boolean)
The function does not seem to be called with it in the codebase, butI do not know if other people use it.

@andrew8088
Copy link

Hope this lands! Came here looking for discussion around adding this feature.

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

Successfully merging this pull request may close these issues.

2 participants