summaryrefslogtreecommitdiffstats
path: root/resources/resource_factories/bundler/bundler.go
diff options
context:
space:
mode:
Diffstat (limited to 'resources/resource_factories/bundler/bundler.go')
-rw-r--r--resources/resource_factories/bundler/bundler.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/resources/resource_factories/bundler/bundler.go b/resources/resource_factories/bundler/bundler.go
index 6655ee5c3..c310efa33 100644
--- a/resources/resource_factories/bundler/bundler.go
+++ b/resources/resource_factories/bundler/bundler.go
@@ -18,6 +18,7 @@ import (
"bytes"
"fmt"
"io"
+ "path"
"path/filepath"
"github.com/gohugoio/hugo/common/hugio"
@@ -66,7 +67,7 @@ func (r *multiReadSeekCloser) Close() error {
// Concat concatenates the list of Resource objects.
func (c *Client) Concat(targetPath string, r resource.Resources) (resource.Resource, error) {
// The CACHE_OTHER will make sure this will be re-created and published on rebuilds.
- return c.rs.ResourceCache.GetOrCreate(resources.CACHE_OTHER, targetPath, func() (resource.Resource, error) {
+ return c.rs.ResourceCache.GetOrCreate(path.Join(resources.CACHE_OTHER, targetPath), func() (resource.Resource, error) {
var resolvedm media.Type
// The given set of resources must be of the same Media Type.