Skip to content

Preserve the URL in the browser #453

Answered by ajnsn
darklord1807 asked this question in Help
Discussion options

You must be logged in to vote

@darklord1807 Inertia's Laravel adapter always returns the $request->getRequestUri() as page.url which makes Inertia change the url like you described.

Instead of using Inertia, you could use a direct fetch or Axios.

There's also an open pull request which mitigates the issue by allowing you to specify the page.url.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@darklord1807
Comment options

Answer selected by claudiodekker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants