mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-08 19:36:36 +02:00
commands: Fix --navigateToChanged server behavior when editing headless content
Fixes #12648
This commit is contained in:
@@ -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()
|
link, port := p.RelPermalink(), p.Site().ServerPort()
|
||||||
lrl.Logf("navigating to %q using port %d", link, port)
|
lrl.Logf("navigating to %q using port %d", link, port)
|
||||||
livereload.NavigateToPathForPort(link, port)
|
livereload.NavigateToPathForPort(link, port)
|
||||||
|
Reference in New Issue
Block a user