URI: 
       commands: Fix --navigateToChanged server behavior when editing headless content - hugo - [fork] hugo port for 9front
  HTML git clone git@git.drkhsh.at/hugo.git
   DIR Log
   DIR Files
   DIR Refs
   DIR Submodules
   DIR README
   DIR LICENSE
       ---
   DIR commit cc2d19e19bb01338ca67a7bcbef9a2e1300443de
   DIR parent 094f746751798a9316db8ba3c14cdb6666c7e950
  HTML Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
       Date:   Sun,  7 Jul 2024 12:25:22 +0200
       
       commands: Fix --navigateToChanged server behavior when editing headless content
       
       Fixes #12648
       
       Diffstat:
         M commands/hugobuilder.go             |       2 +-
       
       1 file changed, 1 insertion(+), 1 deletion(-)
       ---
   DIR diff --git 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)