Skip to content

Commit bc257c8

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 (cherry picked from commit 17869bb) Conflicts: Resources/views/pagelayout.html.twig
1 parent d8cb61d commit bc257c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Resources/views/pagelayout.html.twig

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
</head>
1717
<body>
1818
<!-- Complete page area: START -->
19-
{% if location is defined and not location.isDraft %}
20-
{{ render( controller( "ezpublish_legacy.website_toolbar.controller:websiteToolbarAction", { 'locationId': location.id} ) ) }}
21-
{% endif %}
19+
20+
{{ render( controller( "ezpublish_legacy.website_toolbar.controller:websiteToolbarAction", { 'locationId': location.id|default( null ) } ) ) }}
21+
2222
<div id="page" class="">
2323
<!-- Header area: START -->
2424
{% block header %}

0 commit comments

Comments
 (0)