summaryrefslogtreecommitdiffstats
path: root/helpers/pathspec.go
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-15 13:35:28 +0100
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>2018-11-15 16:37:11 +0100
commit5df2b79dd2734e9a00ed1692328f58c385676468 (patch)
tree43c116e383b20e8dcec07cb4ab8ac92d77b171d7 /helpers/pathspec.go
parent12742bac71c65d65dc56548b643debda94757aee (diff)
Fix Permalink for resource, baseURL with path and canonifyURLs set
Fixes #5226
Diffstat (limited to 'helpers/pathspec.go')
-rw-r--r--helpers/pathspec.go8
1 files changed, 3 insertions, 5 deletions
diff --git a/helpers/pathspec.go b/helpers/pathspec.go
index 847029f44..b82ebd992 100644
--- a/helpers/pathspec.go
+++ b/helpers/pathspec.go
@@ -69,11 +69,9 @@ func NewPathSpecWithBaseBaseFsProvided(fs *hugofs.Fs, cfg config.Provider, baseB
ProcessingStats: NewProcessingStats(p.Lang()),
}
- if !ps.CanonifyURLs {
- basePath := ps.BaseURL.Path()
- if basePath != "" && basePath != "/" {
- ps.BasePath = basePath
- }
+ basePath := ps.BaseURL.Path()
+ if basePath != "" && basePath != "/" {
+ ps.BasePath = basePath
}
return ps, nil