mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 06:30:33 +03:00
parent
dd1001ceda
commit
c6f4b09f65
2 changed files with 2 additions and 1 deletions
|
@ -152,6 +152,7 @@ func fixUrl(s string) (string, error) {
|
|||
if serverAppend {
|
||||
if useLocalhost {
|
||||
u.Host = fmt.Sprintf("localhost:%d", serverPort)
|
||||
u.Scheme = "http"
|
||||
return u.String(), nil
|
||||
}
|
||||
host := u.Host
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue