I have a site with two languages configured plus one output format for print like that:
[outputFormats]
[outputFormats.print]
name= 'print'
baseName = 'index.print'
isHTML = true
mediaType = 'text/html'
permalinkable = false
noUgly = true
[outputs]
home = ['html', 'rss', 'print']
section = ['html', 'rss', 'print']
page = ['html', 'print']
Everything works fine until I add to my config:
defaultContentLanguageInSubdir = true
In this case the alias file ./index.html points correctly to ./en/index.html. But ./en/index.html points back to itself resulting in an infinite reload loop, instead of containing the content.
Am I doing something wrong in my config?
This behavior is nothing new. I’ve tested it with Hugo 0.141.0 and it behaves in the same way as the latest version.
Demo repo: GitHub - McShelby/hugo-testing at hugo-forum-topic-56695