Fix static content files multilingual root regression

Fixes #11223
This commit is contained in:
Bjørn Erik Pedersen
2023-07-08 11:55:52 +02:00
parent 92e86702ea
commit 6019953769
2 changed files with 1 additions and 4 deletions

View File

@@ -102,9 +102,8 @@ func (p *Paths) Lang() string {
return p.Cfg.Language().Lang
}
// TODO1 check this.
func (p *Paths) GetTargetLanguageBasePath() string {
if len(p.Cfg.Languages()) > 1 {
if p.Cfg.IsMultihost() {
// In a multihost configuration all assets will be published below the language code.
return p.Lang()
}