hugolib: Fix relative .Page.GetPage from bundle

Fixes #6705
This commit is contained in:
Bjørn Erik Pedersen 2020-01-05 12:56:41 +01:00
parent 9b6e61464b
commit 196a9df585
4 changed files with 51 additions and 3 deletions

View file

@ -954,7 +954,7 @@ func (p *pageState) sourceRefs() []string {
path := meta.PathFile()
if path != "" {
ref := "/" + path
ref := "/" + filepath.ToSlash(path)
if ref != refs[0] {
refs = append(refs, ref)
}