aboutsummaryrefslogtreecommitdiffhomepage
path: root/hugolib/site_render.go
diff options
context:
space:
mode:
authorHelder Pereira <[email protected]>2020-06-17 00:05:53 +0100
committerBjørn Erik Pedersen <[email protected]>2020-06-17 10:52:35 +0200
commit9679023f2b0d7c55b70f23fd94603f301a841079 (patch)
treef98094f076252dd864732f24c20e94c4fde73546 /hugolib/site_render.go
parent0a9172672a7f2ed85cf675c96bd01b64641256bb (diff)
downloadhugo-9679023f2b0d7c55b70f23fd94603f301a841079.tar.gz
hugo-9679023f2b0d7c55b70f23fd94603f301a841079.zip
Fix aliases with path in baseURL
Diffstat (limited to 'hugolib/site_render.go')
-rw-r--r--hugolib/site_render.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/hugolib/site_render.go b/hugolib/site_render.go
index 1d397dafa..88b5e6fb7 100644
--- a/hugolib/site_render.go
+++ b/hugolib/site_render.go
@@ -338,7 +338,7 @@ func (s *Site) renderAliases() error {
if isRelative {
// Make alias relative, where "." will be on the
// same directory level as the current page.
- basePath := path.Join(of.RelPermalink(), "..")
+ basePath := path.Join(p.targetPaths().SubResourceBaseLink, "..")
a = path.Join(basePath, a)
} else {