Skip to content

Commit

Permalink
More resilient logic for stripping origin from page URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
derrickreimer committed Jan 3, 2025
1 parent 19b6ab4 commit cd262ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class Response {

setHashIfSameUrl(this.requestParams.all().url, responseUrl)

return responseUrl.href.split(responseUrl.host).pop()
return responseUrl.pathname + responseUrl.search + responseUrl.hash
}

protected mergeProps(pageResponse: Page): void {
Expand Down

0 comments on commit cd262ff

Please sign in to comment.