-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
2.3.1: {{render_esi}} does not pass object to controller in production #10524
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
Comments
it makes sense, render_esi generate an ESI tag which is converted by your reverse proxy by a fragment request and you can't send a php object via a GET request |
Now that you point it out like this. I will have to adapt my logic to it. |
I think there is still an issue here. Not that it should work with objects, but rather the fact that the behaviour in dev is different than in prod. Using objects in dev, it should produce the same error, or a more comprehensive one: throwing for example a |
I actually agree. If an object can't be turned into a string for the URL, then that should cause an error in both environments. |
I've made a PR for this: #15056 . any feeback? |
Just like in #6822
the render_esi does not pass objects to a controller. For example this code
Will work fine in dev environment but cause a PHP Exception in production environment
The text was updated successfully, but these errors were encountered: