From cc6fd49c4d2ddc6970ea23011dece5ba91517ec0 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 13 Aug 2025 10:01:05 -0400 Subject: [PATCH] fix: protocol-relative URLs being accidentally munged, #13592 --- src/posts/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/posts/parse.js b/src/posts/parse.js index 8d0c902e46..f2017c2106 100644 --- a/src/posts/parse.js +++ b/src/posts/parse.js @@ -88,7 +88,7 @@ module.exports = function (Posts) { while (current !== null) { if (current[1]) { try { - parsed = url.parse(current[1]); + parsed = new URL(current[1]); if (!parsed.protocol) { if (current[1].startsWith('/')) { // Internal link