diff --git a/lib/index.js b/lib/index.js index e943bb3..404c7d6 100644 --- a/lib/index.js +++ b/lib/index.js @@ -479,7 +479,8 @@ async function handleTextHtml(state, url, response) { throw message } - return new URL(response.url) + // Allow the hash to remain. + return new URL(response.url + url.hash) } /**