summaryrefslogtreecommitdiffstats
path: root/hugolib/pagecollections.go
diff options
context:
space:
mode:
Diffstat (limited to 'hugolib/pagecollections.go')
-rw-r--r--hugolib/pagecollections.go9
1 files changed, 1 insertions, 8 deletions
diff --git a/hugolib/pagecollections.go b/hugolib/pagecollections.go
index 5ed2a28f0..f1038deff 100644
--- a/hugolib/pagecollections.go
+++ b/hugolib/pagecollections.go
@@ -110,11 +110,6 @@ func (c *pageFinder) getPageForRefs(ref ...string) (page.Page, error) {
key = refs[1]
}
- key = filepath.ToSlash(key)
- if !strings.HasPrefix(key, "/") {
- key = "/" + key
- }
-
return c.getPage(nil, key)
}
@@ -211,9 +206,7 @@ func (c *pageFinder) getContentNodeForRef(context page.Page, isReflink, hadExten
var doSimpleLookup bool
if isReflink || context == nil {
slashCount := strings.Count(inRef, "/")
- if slashCount <= 1 {
- doSimpleLookup = slashCount == 0 || ref[0] == '/'
- }
+ doSimpleLookup = slashCount == 0
}
if !doSimpleLookup {