From 3e6cb2cb77e16be5b6ddd4ae55d5fc6bfba2d226 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Erik=20Pedersen?= Date: Fri, 31 May 2019 09:40:58 +0200 Subject: hugolib: Fix bundle path when slug is set Fixes #4870 --- resources/page/page_paths.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'resources/page') diff --git a/resources/page/page_paths.go b/resources/page/page_paths.go index fd231e72b..247c4dfcb 100644 --- a/resources/page/page_paths.go +++ b/resources/page/page_paths.go @@ -221,6 +221,8 @@ func CreateTargetPaths(d TargetPathDescriptor) (tp TargetPaths) { link = pagePath + // TODO(bep) this should not happen after the fix in https://github.com/gohugoio/hugo/issues/4870 + // but we may need some more testing before we can remove it. if baseNameSameAsType { link = strings.TrimSuffix(link, d.BaseName) } -- cgit v1.2.3