Skip to content

Changed default language when using render_esi #114

@hual7

Description

@hual7
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'
})) }}

Bildschirmfoto 2022-01-22 um 14 13 40

That's weird and symfony is using the correct selected language as fallback.

If I remove render_esi from the template all works fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions