Description
Our Twig ez_render helper fails when the esi rendering method is used.
Steps to reproduce:
1. Create a new template (esi.html.twig) as in attachments in templates/themes/standard/blocks
2. Create a default_layouts.yaml file in config/packages with content:
ezplatform_page_fieldtype: blocks: contentlist: views: esi: template: '@ezdesign/blocks/esi.html.twig' name: 'ESI rendering'
3. Login as admin
4. Start creating a new Landing Page
5. Add ContentList block and open block configuration
6. In the second tab select "ESI rendering" view.
7. In the first tab select Media as parent, 5 as limit and Folder as Content Type
8. Submit block configuration
Expected:
Block is rendered
Actual:
Error when rendering block:
[2020-10-15T10:26:11.356558+00:00] request.CRITICAL: Uncaught PHP Exception TypeError: "Argument 1 passed to Symfony\Component\HttpKernel\UriSigner::buildUrl() must be of the type array, bool given, called in /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/http-kernel/UriSigner.php on line 53" at /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/http-kernel/UriSigner.php line 96 {"exception":"[object] (TypeError(code: 0): Argument 1 passed to Symfony\\Component\\HttpKernel\\UriSigner::buildUrl() must be of the type array, bool given, called in /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/http-kernel/UriSigner.php on line 53 at /Users/mareknocon/Desktop/Sites/v3/vendor/symfony/http-kernel/UriSigner.php:96)"} []