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:
Bjørn Erik Pedersen 2018-01-27 10:58:30 +01:00
parent 7b472e4608
commit ed4a00e46f
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View file

@ -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)
}