[MAGNOLIA-6198] Actionbar items not displaying when page directive is first element in a template script Created: 07/May/15  Updated: 04/Mar/19

Status: Open
Project: Magnolia
Component/s: templating
Affects Version/s: 5.4
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Christopher Zimmermann Assignee: Federico Grilli
Resolution: Unresolved Votes: 0
Labels: tech-debt
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
causality
is causing MGNLSTK-1479 Actionbar items are not displayed on ... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:

 Description   

It is not possible to use the Redirect feature of the STK Redirect page template anymore because no items are displayed in the action bar and therefore one cannot access the page dialog.
Oddly enough it looks like the action bar is rendering its items only when the page (or init) directive is preceded by at least one html tag. For instance this works

<p>
[@cms.page /]
...

and this doesn't, as the directive is the first element in the page (eventually rendered as an HTML comment)

[@cms.page /]
...

It used to work before recent changes cause this now useless element was always added at the very beginning

<meta name="gwt:property" content="locale=en"/>


 Comments   
Comment by Jan Haderka [ 29/Jul/15 ]

This issue affects only templates/pages producing invalid html (hence the "workaround" in MGNLSTK-1479)

Generated at Mon Feb 12 04:12:13 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.