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 --- hugolib/pagination.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hugolib/pagination.go') diff --git a/hugolib/pagination.go b/hugolib/pagination.go index c703f6c98..05846a6bb 100644 --- a/hugolib/pagination.go +++ b/hugolib/pagination.go @@ -588,7 +588,7 @@ func newPaginationURLFactory(d targetPathDescriptor) paginationURLFactory { targetPath := createTargetPath(pathDescriptor) targetPath = strings.TrimSuffix(targetPath, d.Type.BaseFilename()) - link := d.PathSpec.PrependBasePath(targetPath) + link := d.PathSpec.PrependBasePath(targetPath, false) // Note: The targetPath is massaged with MakePathSanitized return d.PathSpec.URLizeFilename(link) } -- cgit v1.2.3