Preserve the URL in the browser #453
-
Hello, So when i do: It changes the URL to /getTables. I want to keep the original link and just let it return the data and update the props. In Laravel I am doing: If I use back it does not return the Prop. Kindly advise if this is a bug or it works as this. Thanks, Naveesh |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@darklord1807 Inertia's Laravel adapter always returns the $request->getRequestUri() as Instead of using Inertia, you could use a direct There's also an open pull request which mitigates the issue by allowing you to specify the |
Beta Was this translation helpful? Give feedback.
@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
orAxios
.There's also an open pull request which mitigates the issue by allowing you to specify the
page.url
.