diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-12-12 15:42:17 +0100 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-12-12 21:47:03 +0100 |
commit | 75ad9cdaaba5e2c13582cd95bc77fb1b570e0b75 (patch) | |
tree | e1d7ced0347c5cfcd3a0515f9b5244f898426190 /config | |
parent | e293e7ca6dcc34cded7eb90a644b5c720c2179cf (diff) | |
download | hugo-75ad9cdaaba5e2c13582cd95bc77fb1b570e0b75.tar.gz hugo-75ad9cdaaba5e2c13582cd95bc77fb1b570e0b75.zip |
Add config option disableDefaultLanguageRedirect
Fixes #13133
Diffstat (limited to 'config')
-rw-r--r-- | config/allconfig/allconfig.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go index b158d8a90..be4480f45 100644 --- a/config/allconfig/allconfig.go +++ b/config/allconfig/allconfig.go @@ -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 |