diff --git a/commands/hugobuilder.go b/commands/hugobuilder.go index 4e7d51b8c..15373d8c6 100644 --- a/commands/hugobuilder.go +++ b/commands/hugobuilder.go @@ -948,7 +948,7 @@ func (c *hugoBuilder) handleEvents(watcher *watcher.Batcher, } } - if p != nil { + if p != nil && p.RelPermalink() != "" { link, port := p.RelPermalink(), p.Site().ServerPort() lrl.Logf("navigating to %q using port %d", link, port) livereload.NavigateToPathForPort(link, port)