Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Misc case issues for URLs #1641
I think there may be a regression for the URLs of uppercase tags.
Now when I added tag links to my post list page:
The links were broken as URLs come out as mixed case (contain uppercase letters). As a workaround, I can do this and it works.
I don't think most themes use
It's not just tags that are broken. I am migrating a blog over from Jekyll that has the url: specified with uppercase characters. The main index page references the URL the proper way (with uppercase characters), but is generating the files with lower case letters. Thus my URL's break...
I think I am seeing a similar issue.
I have a folder on disk like the following (part1=lowercase, PART2=uppercase):
This folder has an
The relative URL to the image for the page that loads resolves to:
This will not load in the browser running the hugo server. I assume because it's the wrong case and hugo is using a different resource-serving mechanism that is case-sensitive.
I would like hugo to leave the case alone when handling URLs.
WIndows 7 and NTFS.
I lower-cased all my files/folders and flattened the content folder tree after my issues and have since been ok.
And I have a hunch that I also changed all the names of my
The TL;DR is probably that I used the wrong mixture of
With this test I can't replicate my issue. The test is:
Both the above pages work, linking to the images correctly.
This test uses file names that are not
This produces the following article link from my post list:
Browsing to this page fails to show the images. The HTML source is:
which is correct, but which results in the following absolute URL:
which is incorrect (there is an extra
and thus the relative paths to the images are correct.
Note/Update: This issue is marked as stale, and I may have said something earlier about "opening a thread on the discussion forum". Please don't.
If this is a bug and you can still reproduce this error on the latest
If this is a feature request, and you feel that it is still relevant and valuable, please tell us why.
Hi @bep, I can probably provide a test case which is relevant:
$ hugo version
$ cat config.yaml
$ cat themes/test/layouts/_default/list.html
$ find content
$ hugo && cat public/index.html
As we could see, the