-
-
Notifications
You must be signed in to change notification settings - Fork 381
[LiveComponent] Refactor and fix some edgecases on new URL generation with path + query LiveProps #3053
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
Conversation
} | ||
} | ||
$newUrl = $this->router->generate($route, $parameters); | ||
} catch (ResourceNotFoundException) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed the MethodNotAllowedException
since I forced the context to GET
method
ee72505
to
fffb7a1
Compare
fffb7a1
to
be9c27e
Compare
8d93bd2
to
c9ce9a7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice tests additions btw..
… just a tiny doubt on the path thing but ignore them if you are certain it cannot happen :)
And big Thank You
2cb9aed
to
18b50c7
Compare
I've just applied your comments @smnandre, which indeed fixed a case where a |
…uery LiveProps) generation
18b50c7
to
5c1441f
Compare
Follows #2673
This PR aims to fix the issues #2987, #3015, and #3052, by rewriting the logic to compute the new
X-Live-Url
when usingLiveProp()
(either with path paremeters or query parameters), inspired by @smnandre's work