-
-
Notifications
You must be signed in to change notification settings - Fork 239
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in view data / url prop #359
Comments
I have created a pull request #360 with a possible solution to this issue. |
This looks like a duplicate of #236 |
I do not believe this is a duplicate of #236, but a solution might solve both issues. |
@claudiodekker seems this was introduced in #333 If I am not mistaken this anyway shouldn't be Inertia's job. The behavior before was just fine and the issue which lead to the PR should be solvable by e.g. setting |
It should in my opinion be Inertia's job to handle different server configurations. The problem as far as I can see is that #333 is the wrong fix for the problem. At least in my case where I'm setting The combination of It seems to me that |
Thanks @kimhf. I can't wait this gets released. I have just started using inertia a couple days ago. This will solve my problem with a project in subfolder. |
I hope this commit will be merged soon because it is seemed to be that this will solve my problem too. |
Hope this gets fixed soon, it fixed my issue as well. ✊ |
also interested in a fix, at the moment I have to mess with the toResponse function in /vendor/inertiajs/inertia-laravel/src/Response.php |
I am also interested in this fix! Currently unable to update a site to Laravel 9 because of this issue. |
This also fixed my issue. Hope it gets merged soon. |
Holy sh**! I lost one week of my life because of this bug! |
I noticed this issue after submitting issue #421 and proposing PR #422 I spent 4 hours this afternoon before finding this bug!
This is how I've dealt with it too in the meantime. |
This fixed my problem too, I'm glad I found the solution I was struggling since the beggining of this week. Thanks |
I spent a lot of time trying to fix this thing in my nginx conf, until I started looking at Laravel & InertiaJs packages to understand the source of the duplication. Definitely this patch is the right solution for the problem. I can't wait to see this merged (in the mean time, I'm going to production with a fork ¯_(ツ)_/¯). |
I can't wait to see this merged!!!!!!!! |
Awaiting the merge, almost a year, gosh |
I have same issue so i downloaded the package and edited it localy. Actually i also edited svelte package too. |
Currently if the project has the base url
localhost/test
and we navigate tosome/sub/page
the result is a url change tolocalhost/test/test/some/sub/page
in the brower by inertiajs. This url no longer matches the route we are currently at.The issue seems to be that a path as part of the base url is not handled correctly.
This line in \Inertia\Response causes the issue.
'url' => $request->getBaseUrl().$request->getRequestUri(),
The text was updated successfully, but these errors were encountered: