mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-14 20:33:59 +02:00
Fix aliases with relativeURLs
This commit is contained in:
committed by
Bjørn Erik Pedersen
parent
01e249e97c
commit
145b3fcce3
@@ -99,8 +99,11 @@ func (s *Site) publishDestAlias(allowRoot bool, path, permalink string, outputFo
|
||||
OutputFormat: outputFormat,
|
||||
}
|
||||
|
||||
return s.publisher.Publish(pd)
|
||||
if s.Info.relativeURLs || s.Info.canonifyURLs {
|
||||
pd.AbsURLPath = s.absURLPath(targetPath)
|
||||
}
|
||||
|
||||
return s.publisher.Publish(pd)
|
||||
}
|
||||
|
||||
func (a aliasHandler) targetPathAlias(src string) (string, error) {
|
||||
|
Reference in New Issue
Block a user