Skip to content

Commit

Permalink
Merge pull request #2032 from inertiajs/page-full-url-fix
Browse files Browse the repository at this point in the history
[2.x] $page url should not include the host
  • Loading branch information
joetannenbaum authored Oct 15, 2024
2 parents 88a765b + fa37194 commit 65602dd
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
return responseUrl.href.split(responseUrl.host).pop()
}

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

0 comments on commit 65602dd

Please sign in to comment.