diff --git a/hugolib/site.go b/hugolib/site.go index b460a0f81..dcb9b1d8c 100644 --- a/hugolib/site.go +++ b/hugolib/site.go @@ -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 {