mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-11 20:03:58 +02:00
Fix Permalink for resource, baseURL with path and canonifyURLs set
Fixes #5226
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user