summaryrefslogtreecommitdiffhomepage
path: root/commands/hugo.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-11-15 13:35:28 +0100
committerBjørn Erik Pedersen <[email protected]>2018-11-15 16:37:11 +0100
commit5df2b79dd2734e9a00ed1692328f58c385676468 (patch)
tree43c116e383b20e8dcec07cb4ab8ac92d77b171d7 /commands/hugo.go
parent12742bac71c65d65dc56548b643debda94757aee (diff)
downloadhugo-5df2b79dd2734e9a00ed1692328f58c385676468.tar.gz
hugo-5df2b79dd2734e9a00ed1692328f58c385676468.zip
Fix Permalink for resource, baseURL with path and canonifyURLs set
Fixes #5226
Diffstat (limited to 'commands/hugo.go')
-rw-r--r--commands/hugo.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/hugo.go b/commands/hugo.go
index 175c6dc99..0bb15c3d1 100644
--- a/commands/hugo.go
+++ b/commands/hugo.go
@@ -652,7 +652,7 @@ func (c *commandeer) rebuildSites(events []fsnotify.Event) error {
if langPath != "" {
langPath = langPath + "/"
}
- home := c.hugo.PathSpec.PrependBasePath("/" + langPath)
+ home := c.hugo.PathSpec.PrependBasePath("/"+langPath, false)
visited[home] = true
}