Skip to content

Commit

Permalink
commands: Fix baseURL server regression for multilingual sites
Browse files Browse the repository at this point in the history
This was introduced in 6413559 a couple of days ago, and demonstrates that we really need better tests for the server/commands package.

Fixes #4333
  • Loading branch information
bep committed Jan 27, 2018
1 parent 7b472e4 commit ed4a00e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion commands/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit ed4a00e

Please sign in to comment.