-
Notifications
You must be signed in to change notification settings - Fork 343
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
Fix error empty route name #967
base: master
Are you sure you want to change the base?
Conversation
Fix error on requests that cannot access requested _route
Hi, |
Hi @DonCallisto I get this error when i need grid on page that has route parameters and grid isnt returned by gridGet reponse, because ineed more that one grid on this page i return it like this example:
if i dont have this changes i get error unable to generate route for name ""(empty) or in some times i get error of missing parameters to gereate route for current request (i use ajax) Maybe is better to check it in constructor? Regards. |
Sorry but I don't understand your use case. Do you have multiple grid on the same page? |
@DonCallisto this actually happens on forwarded routes. Fabien Potencier actually explained here that _route should not be used because it is only for debugging purpose. |
In a similar issue, I did resolve it using the RequestStack instead:
|
That makes sense but we should think how to solve this natively. |
Fix error on requests that cannot access requested _route