From 254580a284e57bf08e1880d00c11f38657241fd4 Mon Sep 17 00:00:00 2001 From: dolonfly Date: Fri, 14 Feb 2025 03:38:47 +0800 Subject: [PATCH] fix: relative url 2 full url use error base url (#584) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit according to : https://developer.mozilla.org/en-US/docs/Web/API/URL/URL the second parameter: A string representing the base URL to use in cases where url is a relative reference so need use the pageUrl , not url origin eg: when pageUrl = http://example.com/a/b/c/d.html and tag a href is '../e.html' then correct: new URL('../e.html','http://example.com/a/b/c/d.html') incorrect: new URL('../e.html','http://example.com')