Skip to content

Commit

Permalink
commands: Fix --navigateToChanged server behavior when editing headle…
Browse files Browse the repository at this point in the history
…ss content

Fixes #12648
  • Loading branch information
bep committed Jul 7, 2024
1 parent 094f746 commit cc2d19e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion commands/hugobuilder.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cc2d19e

Please sign in to comment.