From 90ffca6ab86bfc7ceb2accf7861ba5e47a1cd84e Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Mon, 24 Jun 2024 13:38:39 +0200 Subject: [PATCH] Fix bug where hash does not remain --- lib/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } /**