fix: relative url 2 full url use error base url (#584)

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')
This commit is contained in:
dolonfly 2025-02-14 03:38:47 +08:00 committed by GitHub
parent 73e7884df4
commit 254580a284
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

Diff Content Not Available