Taxonomy Term Normalization In URLs

hugo version
Hugo Static Site Generator v0.31.1 linux/amd64 BuildDate: 2017-11-27T06:26:24-05:00

I was building a french site with accented characters in the taxonomy terms. I wanted accents in the values, but I wanted them stripped out (normalized) in the URLs.

Here’s the undocumented configuration option which worked:

removePathAccents = true

Also, when these config options are set:

languageCode = "fr-CA"
defaultContentLanguage = "fr-CA"

it seems that

preserveTaxonomyNames = true

doesn’t do anything.

That is exactly what it does (or it prevents Hugo from doing that anything).

My apologies, I wasn’t clear. The config option preserveTaxonomyNames being true or false doesn’t seem to change the output. If set to false, the taxonomy term “État de santé et résultats de santé” will still still have the accents when printed using {{ $value }} in a template.