| vendor |
version |
| PHP |
8.0.14 |
| Symfony/Symfony |
5.4.2, 5.3.13 |
| Sylius/SyliusThemeBundle |
2.2.0 |
| sulu/SuluThemeBundle |
3.0.2 |
As soon as I'm using render_esi in a template, I get a changed default language (defaultlocale@theme-name) in the symfony profiler.
{{ render_esi(controller('App\\Controller\\Website\\PageController::testPage', {
'_portal' : request.portalKey|default('default_portal_key'),
'_locale' : app.request.locale,
'message': 'foo bar'
})) }}

That's weird and symfony is using the correct selected language as fallback.
If I remove render_esi from the template all works fine.
As soon as I'm using render_esi in a template, I get a changed default language (defaultlocale@theme-name) in the symfony profiler.
{{ render_esi(controller('App\\Controller\\Website\\PageController::testPage', { '_portal' : request.portalKey|default('default_portal_key'), '_locale' : app.request.locale, 'message': 'foo bar' })) }}That's weird and symfony is using the correct selected language as fallback.
If I remove render_esi from the template all works fine.