Fix URLs for bundle resources in multihost mode

Fixes #4217
This commit is contained in:
Bjørn Erik Pedersen
2018-01-05 12:01:13 +01:00
parent f25d8a9e17
commit ab82a27d05
6 changed files with 42 additions and 17 deletions

View File

@@ -208,7 +208,7 @@ func (p *PathSpec) getLanguagePrefix() string {
defaultLang := p.defaultContentLanguage
defaultInSubDir := p.defaultContentLanguageInSubdir
currentLang := p.language.Lang
currentLang := p.Language.Lang
if currentLang == "" || (currentLang == defaultLang && !defaultInSubDir) {
return ""
}
@@ -221,7 +221,7 @@ func (p *PathSpec) GetLangSubDir(lang string) string {
return ""
}
if p.languages.IsMultihost() {
if p.Languages.IsMultihost() {
return ""
}