mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
commands: Fix --navigateToChanged server behavior when editing headless content
Fixes #12648
This commit is contained in:
parent
094f746751
commit
cc2d19e19b
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue