mirror of
https://git.mirrors.martin98.com/https://github.com/mendableai/firecrawl
synced 2025-08-11 21:09:00 +08:00
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:
parent
73e7884df4
commit
254580a284