diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index d6958a696..fcc6dd6be 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -329,7 +329,7 @@ class Site { if (response.status() >= 300 && response.status() < 400) { if (this.headers.location) { - url = new URL(this.headers.location.slice(-1)) + url = new URL(this.headers.location.slice(-1), url) } } else { responseReceived = true