Details
-
Bug
-
Resolution: Unresolved
-
Neutral
-
None
-
1.0.1
-
None
Description
We are using a slightly modified version of the MTK navigation macro example for building the navigation menu. The relevant part:
[#assign siteRoot = cmsfn.siteRoot(content)] <ul class="navbar-nav"> [#assign navItemsRootLevel = navfn.navItems(siteRoot)] [#list navItemsRootLevel as navItemRoot] <a href="${navfn.link(navItemRoot)!'#'}"> ${navItemRoot.navigationTitle!navItemRoot.title!navItemRoot.@name!' '}</a> ...
The siteRoot assignment seems to be correct (it's path is '/home' in our case) but the navItems list comes back as an empty list when the ab test is running. Pausing or aborting it is enough for the menu to reappear.
Steps to reproduce
- Creating ab test variants on the root page
- Using navfn.navItems templating function to build the menu
- when the test runs the menu disappears

- pausing the test makes the menu reappear

Please check whether it's a bug or an error on our approach, and advice for a workaround or a different method to build the menu.
Checklists
Acceptance criteria