summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--commands/hugo.go3
-rw-r--r--commands/server.go2
2 files changed, 3 insertions, 2 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index a86d92acd..5961ede3b 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -771,8 +771,9 @@ func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
visited := c.visitedURLs.PeekAllSet()
doLiveReload := !buildWatch && !c.Cfg.GetBool("disableLiveReload")
if doLiveReload && !c.Cfg.GetBool("disableFastRender") {
+ home := c.pathSpec.PrependBasePath("/")
// Make sure we always render the home page
- visited["/"] = true
+ visited[home] = true
}
return Hugo.Build(hugolib.BuildCfg{PrintStats: !quiet, Watching: true, RecentlyVisited: visited}, events...)
}
diff --git a/commands/server.go b/commands/server.go
index 8c22d1d97..e2d37f165 100644
--- a/commands/server.go
+++ b/commands/server.go
@@ -238,7 +238,7 @@ func (c *commandeer) serve(port int) {
}
if fastRenderMode {
- p := r.URL.Path
+ p := r.RequestURI
if strings.HasSuffix(p, "/") || strings.HasSuffix(p, "html") || strings.HasSuffix(p, "htm") {
c.visitedURLs.Add(p)
}