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