Getting 404 because hugo is lowercasing the relative link

i have:
content/Iabbers/eLetters/index.org (using hugo new)
content/Iabbers/eLetters/hurraw/
content/Iabbers/eLetters/hurraw/hurraw01.txt

the link in index.org goes INcorrectly to hurraw01.txt:
http://localhost:1313/iabbers/eletters/hurraw/hurraw01.txt

instead of
http://localhost:1313/Iabbers/eLetters/hurraw/hurraw01.txt

why is hugo turning all the uppercase letters to lowercase in forming the url?

preserveTaxonomyNames = true
in the config.toml file isn’t doing it for these relative links i have.

so the question becomes how do i get hugo to not lowercase the letters in the link?

See:
https://gohugo.io/getting-started/configuration/#disablepathtolower

However, this option may be removed in a future release:
https://github.com/gohugoio/hugo/issues/9171

Recommendation: do not use uppercase characters in file or directory names. It may come back to bite you later.

disablePathToLower = “true”

just found that this works before reading your post. :smiley:
thank you.

is this suitable or will it too “come back to bite” since they may disable this feature.

i need the cap letters showing up on the section headings though not in the link itself, so i guess i could do this manually somehow.

I think you answered your own question.

hugo new labbers/eletters/_index.md
+++
title = 'eLetters'
date = 2022-01-03T15:32:25-08:00
draft = false
+++
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.