From 5df2b79dd2734e9a00ed1692328f58c385676468 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Thu, 15 Nov 2018 13:35:28 +0100 Subject: Fix Permalink for resource, baseURL with path and canonifyURLs set Fixes #5226 --- commands/hugo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'commands') 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 } -- cgit v1.2.3