mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
hugolib: Improve error handling in refLink
This commit is contained in:
@@ -514,7 +514,8 @@ func (s *siteRefLinker) refLink(ref string, page *Page, relative bool, outputFor
|
||||
target, err := s.s.getPageNew(page, refURL.Path)
|
||||
|
||||
if err != nil {
|
||||
return "", err
|
||||
s.logNotFound(refURL.Path, err.Error(), page)
|
||||
return s.notFoundURL, nil
|
||||
}
|
||||
|
||||
if target == nil {
|
||||
|
Reference in New Issue
Block a user