mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-15 21:14:43 -04:00
hugolib: Improve error handling in refLink
This commit is contained in:
parent
1eb8b36b38
commit
6ffa882349
@ -514,7 +514,8 @@ func (s *siteRefLinker) refLink(ref string, page *Page, relative bool, outputFor
|
|||||||
target, err := s.s.getPageNew(page, refURL.Path)
|
target, err := s.s.getPageNew(page, refURL.Path)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
s.logNotFound(refURL.Path, err.Error(), page)
|
||||||
|
return s.notFoundURL, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
if target == nil {
|
if target == nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user