summaryrefslogtreecommitdiffstats
path: root/hugolib/paths/paths.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-08 11:55:52 +0200
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2023-07-08 16:08:46 +0200
commit6019953769741d3ec0b48aa16b2a6cc06a93f5ba (patch)
tree8f15f6cc963ce5dcf92afc9baba8ba40a4e5101d /hugolib/paths/paths.go
parent92e86702eab5d68cd4eda87069fba906139f5c08 (diff)
Fix static content files multilingual root regression
Fixes #11223
Diffstat (limited to 'hugolib/paths/paths.go')
-rw-r--r--hugolib/paths/paths.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/hugolib/paths/paths.go b/hugolib/paths/paths.go
index b0d9e3c1b..817670dbd 100644
--- a/hugolib/paths/paths.go
+++ b/hugolib/paths/paths.go
@@ -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()
}