Skip to content

Commit 17869bb

Browse files
committed
Fix EZP-24052: Preview causes redirect to versionview not being able to
continue editing > https://jira.ez.no/browse/EZP-24052 See ezsystems/LegacyBridge#23 (cherry picked from commit a3d7e07) Conflicts: Resources/views/pagelayout.html.twig
1 parent 1ac7720 commit 17869bb

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Resources/views/pagelayout.html.twig

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@
2121
{% endif %}
2222

2323
<!-- Complete page area: START -->
24-
{% if currentLocation is defined %}
25-
{{ render( controller( "ezpublish_legacy.website_toolbar.controller:websiteToolbarAction", { 'locationId': currentLocation.id} ) ) }}
26-
{% endif %}
24+
{{ render( controller( "ezpublish_legacy.website_toolbar.controller:websiteToolbarAction", { 'locationId': currentLocation.id|default( null )} ) ) }}
2725
<div id="page" class="">
2826
<!-- Header area: START -->
2927
{% block header %}

0 commit comments

Comments
 (0)