While writing this example, I understood that the term’s custom slug will be used when the path matches the generated one – in my case, golf as desired.
Changing charlie delta to my problem string Paulo César Pinheiro - Capoeira de Besouro, the final slug becomes paulo-césar-pinheiro-capoeira-de-besouro or paulo-c%C3%A9sar-pinheiro-capoeira-de-besouro, and when I use one of those for charlie-delta, it doesn’t override with golf.
git clone --single-branch -b hugo-forum-topic-55679 https://github.com/jmooring/hugo-testing hugo-forum-topic-55679
cd hugo-forum-topic-55679
hugo && tree public
Question
Although not a factor here, I don’t understand why you’re doing this:
Perhaps I misunderstood, but I thought url is when you want to rewrite the entire path, whereas I really just want to rewrite the slug.
I’m happy to explain but not sure what exactly is relevant to your question. Maybe I can recap a bit:
I was having trouble setting the term slug on one of my content adapter pages. (If it’s helpful, the reason I want to change the slug is the generated one includes the accent/diacritic in césar and as a principle I try to avoid that in URLs. Plus I wanted to use a short nickname.)
Set the slug in front matter to override the last segment of the path. This front matter field is not applicable to home, section, taxonomy, or term pages.