hugolib: Must update PathSpec on SiteInfo per language

This commit is contained in:
Bjørn Erik Pedersen
2016-11-07 21:16:55 +01:00
parent 85a2d81e3c
commit 4d4c7791ac
2 changed files with 3 additions and 0 deletions

View File

@@ -823,6 +823,7 @@ func (s *Site) setCurrentLanguageConfig() error {
viper.Set("currentContentLanguage", s.Language)
// Cache the current config.
helpers.InitConfigProviderForCurrentContentLanguage()
s.Info.pathSpec = helpers.CurrentPathSpec()
return tpl.SetTranslateLang(s.Language)
}