selected = false %}
                    {% set activeOrActiveChild = true %}
                {% endif %}
            {% endfor %}
        {% endif %}

        {% set linkAttributes = {
            href: item.getUrl() ?? false,
            class: [
                'sidebar-action',
                selected ? 'sel' : false,
                activeOrActiveChild ? 'sel is-active' : false,
                (item.getUrl() and item.newWindow) ? 'external' : false,
            ] | filter,
            target: item.get