diff options
Diffstat (limited to 'helpers/pathspec.go')
-rw-r--r-- | helpers/pathspec.go | 8 |
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 |