mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-12 20:13:59 +02:00
commands: Support Fast Render mode with sub-path in baseURL
Fixes #3981
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user