1
0
mirror of https://github.com/gohugoio/hugo.git synced 2024-05-11 05:54:58 +00:00

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)
}