summaryrefslogtreecommitdiffstats
path: root/hugolib/page_paths.go
diff options
context:
space:
mode:
authorCameron Moore <moorereason@gmail.com>2018-08-22 00:18:37 -0500
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-08-22 07:18:37 +0200
commitfff132537b4094221f4f099e2251f3cda613060f (patch)
tree1b057925f7e8e3e10922aaba2a8e36ef16bc8db2 /hugolib/page_paths.go
parent8999de193c18b7aa07b44e5b7d9f443a8572e117 (diff)
Fix handling of taxonomy terms containing slashes
Fixes #4090
Diffstat (limited to 'hugolib/page_paths.go')
-rw-r--r--hugolib/page_paths.go8
1 files changed, 7 insertions, 1 deletions
diff --git a/hugolib/page_paths.go b/hugolib/page_paths.go
index 550df130d..999537de4 100644
--- a/hugolib/page_paths.go
+++ b/hugolib/page_paths.go
@@ -197,7 +197,13 @@ func createTargetPath(d targetPathDescriptor) string {
if d.ExpandedPermalink != "" {
pagePath = filepath.Join(pagePath, d.ExpandedPermalink)
} else {
- pagePath = filepath.Join(d.Sections...)
+ pagePath = ""
+ for i, section := range d.Sections {
+ if i > 0 {
+ pagePath += helpers.FilePathSeparator
+ }
+ pagePath += d.PathSpec.MakeSegment(section)
+ }
}
needsBase = false
}