diff options
Diffstat (limited to 'hugolib/site.go')
-rw-r--r-- | hugolib/site.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/hugolib/site.go b/hugolib/site.go index b663a39f0..47c2af453 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -416,6 +416,9 @@ func (s *SiteInfo) refLink(ref string, page *Page, relative bool, outputFormat s var refURL *url.URL var err error + ref = filepath.ToSlash(ref) + ref = strings.TrimPrefix(ref, "/") + refURL, err = url.Parse(ref) if err != nil { |