mirror of
https://github.com/gohugoio/hugo.git
synced 2025-09-13 22:57:22 -04:00
commands: Fix baseURL server regression for multilingual sites
This was introduced in 6413559f7575e2653d76227a8037a7edbaae82aa 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
@ -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…
x
Reference in New Issue
Block a user