mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-15 20:44:01 +02:00
Fix aliases with path in baseURL
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
0a9172672a
commit
9679023f2b
@@ -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 {
|
||||
|
Reference in New Issue
Block a user