diff --git a/Resources/views/pagelayout.html.twig b/Resources/views/pagelayout.html.twig index acb5a78..91ff028 100644 --- a/Resources/views/pagelayout.html.twig +++ b/Resources/views/pagelayout.html.twig @@ -21,9 +21,7 @@ {% endif %} -{% if currentLocation is defined %} - {{ render( controller( "ezpublish_legacy.website_toolbar.controller:websiteToolbarAction", { 'locationId': currentLocation.id} ) ) }} -{% endif %} + {{ render( controller( "ezpublish_legacy.website_toolbar.controller:websiteToolbarAction", { 'locationId': currentLocation.id|default( null )} ) ) }}