diff --git a/site.js b/site.js index 36994ca..392eac6 100644 --- a/site.js +++ b/site.js @@ -29,9 +29,7 @@ async function urlCollector(url, path, file, useLimit) { let h = body(link).attr('href'); if (!h) return; h = h.trim(); - if (h.startsWith('./') && h.startsWith('../')) { - h = `${url}/h`; - } else if (h.startsWith('/')) { + if (h.startsWith('./') || h.startsWith('../') || h.startsWith('/')) { let u = new URL(url); u.pathname = h; h = u.toString();