Description
Description
Not sure this should be a bug or feature request
The duplicateRequest
function in ErrorListener will state the _controller
, exception
& logger
symfony/src/Symfony/Component/HttpKernel/EventListener/ErrorListener.php
Lines 138 to 152 in 6cdfd71
But we may need to use some of the params from the request, is it better that we merge the original attribute instead of replacing it?
(FYI, my working version is 5.3.9)
Example
I am using Sylius, and they are getting the _locale
attribute to identify the locale of a page
https://github.com/Sylius/Sylius/blob/75b3fc74454ed04a6d1d9dabea41d401aea8495d/src/Sylius/Bundle/LocaleBundle/Context/RequestBasedLocaleContext.php#L44-L47
currently, if attributes in the main request were not cloning to the error sub-request, links in the error page will be generated incorrectly due to _locale
attribute is missing
symfony/src/Symfony/Component/Routing/Generator/UrlGenerator.php
Lines 128 to 145 in 6cdfd71