Add config option disableDefaultLanguageRedirect

Fixes #13133
This commit is contained in:
Bjørn Erik Pedersen
2024-12-12 15:42:17 +01:00
parent e293e7ca6d
commit 75ad9cdaab
3 changed files with 29 additions and 0 deletions

View File

@@ -505,6 +505,9 @@ type RootConfig struct {
// Set this to true to put all languages below their language ID.
DefaultContentLanguageInSubdir bool
// Disable generation of redirect to the default language when DefaultContentLanguageInSubdir is enabled.
DisableDefaultLanguageRedirect bool
// Disable creation of alias redirect pages.
DisableAliases bool