mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Add multilingual multihost support
This commit adds multihost support when more than one language is configured and `baseURL` is set per language. Updates #4027
This commit is contained in:
@@ -387,7 +387,7 @@ func (s *Site) renderAliases() error {
|
||||
}
|
||||
}
|
||||
|
||||
if s.owner.multilingual.enabled() {
|
||||
if s.owner.multilingual.enabled() && !s.owner.IsMultihost() {
|
||||
mainLang := s.owner.multilingual.DefaultLang
|
||||
if s.Info.defaultContentLanguageInSubdir {
|
||||
mainLangURL := s.PathSpec.AbsURL(mainLang.Lang, false)
|
||||
|
Reference in New Issue
Block a user