Skip to content

Commit

Permalink
Fix bug where hash does not remain
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Jun 24, 2024
1 parent faa953d commit 90ffca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

/**
Expand Down

0 comments on commit 90ffca6

Please sign in to comment.