We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3c5879 commit b791e5eCopy full SHA for b791e5e
scripts/lint-404s/main.ts
@@ -75,7 +75,7 @@ async function main() {
75
const fullPath = link.href.startsWith('/')
76
? trimSlashes(link.href)
77
: // relative path
78
- trimSlashes(new URL(pageUrl.pathname + '/' + link.href, baseURL).pathname);
+ trimSlashes(new URL(link.href, pageUrl).pathname);
79
80
if (isInSitemap(fullPath)) {
81
return false;
0 commit comments