Skip to content

commands: Server ignores baseurl in config #1821

@moorereason

Description

@moorereason

When running hugo server with the following config snippet:

baseurl = "http://10.1.2.3:1313/"

Hugo ignores the baseurl in the config:

$ hugo server --bind 10.1.2.3
...
Web Server is available at http://localhost:1313/ (bind address 10.1.2.3)

Hugo should instead run as:

$ hugo server --bind 10.1.2.3
...
Web Server is available at http://10.1.2.3:1313/ (bind address 10.1.2.3)

This manifests itself in the generation of .Permalink values for nodes and pages.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions