Skip to content

Commit b791e5e

Browse files
committed
Fixing 404 linter bug
1 parent b3c5879 commit b791e5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/lint-404s/main.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ async function main() {
7575
const fullPath = link.href.startsWith('/')
7676
? trimSlashes(link.href)
7777
: // relative path
78-
trimSlashes(new URL(pageUrl.pathname + '/' + link.href, baseURL).pathname);
78+
trimSlashes(new URL(link.href, pageUrl).pathname);
7979

8080
if (isInSitemap(fullPath)) {
8181
return false;

0 commit comments

Comments
 (0)