mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-28 22:50:35 +03:00
Fix sub-folder baseURL handling for Page resources
I.e. images etc. Fixes #4228
This commit is contained in:
parent
54a89cde69
commit
f25d8a9e17
9 changed files with 136 additions and 52 deletions
|
@ -137,9 +137,9 @@ func (p *Page) initURLs() error {
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
rel = p.s.PathSpec.PrependBasePath(rel)
|
||||
p.relPermalink = rel
|
||||
|
||||
p.relPermalinkBase = strings.TrimSuffix(rel, f.MediaType.FullSuffix())
|
||||
p.relPermalink = p.s.PathSpec.PrependBasePath(rel)
|
||||
p.layoutDescriptor = p.createLayoutDescriptor()
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue