{% set nodeId = menuitem.uniqueId %}
<li id="{{ nodeId }}"{% if menuitem.offline %} data-jstree='{"type":"offline"}'{% endif %} class="{% if menuitem.active or nodeId == 'node-1' %}jstree-open{% endif %}{% if menuitem.offline %} jstree-node--offline{% endif %}"{% if menuitem.role %} rel="{{menuitem.role}}"{% endif %}>
    {% if menuitem.route %}
        <a href="{{ path(menuitem.route, menuitem.routeparams) }}" class="{% if currentMenuItem is not null and currentMenuItem.uniqueId == menuitem.uniqueId %}active{% endif %}">
            {{ menuitem.label }}
        </a>
    {% else %}
        {{ menuitem.label }}
    {% endif %}

    <ul>
    {% for menuitem in menuitem.navigationChildren %}
        {% include 'KunstmaanAdminBundle:Default:rectreeview.html.twig' %}
    {% endfor %}
    </ul>
</li>

{% set nodeId = menuitem.uniqueId %}

<li id="{{ nodeId }}"{% if menuitem.offline %} data-jstree='{"type":"offline"}'{% endif %} class="{% if menuitem.active or nodeId == 'node-1' %}jstree-open{% endif %}{% if menuitem.offline %} jstree-node--offline{% endif %}"{% if menuitem.role %} rel="{{menuitem.role}}"{% endif %}>
    {% if menuitem.route %}
        <a href="{{ path(menuitem.route, menuitem.routeparams) }}" class="{% if currentMenuItem is not null and currentMenuItem.uniqueId == menuitem.uniqueId %}active{% endif %}">
            {{ menuitem.label }}
        </a>
    {% else %}
        {{ menuitem.label }}
    {% endif %}

    <ul>
    {% for menuitem in menuitem.navigationChildren %}
        {% include 'KunstmaanAdminBundle:Default:rectreeview.html.twig' %}
    {% endfor %}
    </ul>
</li>

Fix online/offline indication in the menu tree for child pages of structure nodes
Fix online/offline indication in the menu tree for child pages of structure nodes
