mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-07 20:30:36 -05:00
commands: Fix baseURL server regression for multilingual sites
This was introduced in 6413559f75
a couple of days ago, and demonstrates that we really need better tests for the server/commands package.
Fixes #4333
This commit is contained in:
parent
7b472e4608
commit
ed4a00e46f
1 changed files with 3 additions and 1 deletions
|
@ -186,7 +186,9 @@ func server(cmd *cobra.Command, args []string) error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
language.Set("baseURL", baseURL)
|
||||
if isMultiHost {
|
||||
language.Set("baseURL", baseURL)
|
||||
}
|
||||
if i == 0 {
|
||||
c.Set("baseURL", baseURL)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue