diff --git a/src/zimcheck/checks.cpp b/src/zimcheck/checks.cpp index 3515ca53..3f72ea04 100644 --- a/src/zimcheck/checks.cpp +++ b/src/zimcheck/checks.cpp @@ -425,13 +425,13 @@ void ArticleChecker::check_internal_links(zim::Item item, const LinkCollection& int nremptylinks = 0; for (const auto &l : links) { - if (l.link.front() == '#' || l.link.front() == '?') continue; - if (l.isInternalUrl() == false) continue; if (l.link.empty()) { nremptylinks++; continue; } + if (l.link.front() == '#' || l.link.front() == '?') continue; + if (l.isInternalUrl() == false) continue; if (isOutofBounds(l.link, baseUrl))