mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02: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:
@@ -186,7 +186,9 @@ func server(cmd *cobra.Command, args []string) error {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
language.Set("baseURL", baseURL)
|
if isMultiHost {
|
||||||
|
language.Set("baseURL", baseURL)
|
||||||
|
}
|
||||||
if i == 0 {
|
if i == 0 {
|
||||||
c.Set("baseURL", baseURL)
|
c.Set("baseURL", baseURL)
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user