Sub menu item not found by system I'm try to overwrite the menu.html.twig file to support my menu structure.

My menu has some links and sublinks (only one level deep). Now when I write the menu.html.twig file I only to all the root links. No subitems can be found.

Can someone tells me what I'm doing wrong?

My source code of menu.html.twig looks like:

{% import _self as menus %}

&lt;ul class="nav side-menu"&gt;

{% for item in items %}

{% if item.below | length == 0 %}
  &lt;li {% if item.in_active_trail%}class="current-page"{% endif %}&gt;
    {{link(item.title, item.url)}}
    &lt;/li&gt;
{% else %}
  &lt;li&gt;&lt;a&gt;&lt;i class="fa fa-edit"&gt;&lt;/i&gt; item.title &lt;span class="fa fa-chevron-down"&gt;&lt;/span&gt;&lt;/a&gt;
    &lt;ul class="nav child_menu"&gt;

      {% for subItem in item.below %}
      &lt;li&gt;{{link(subItem.title, subitem.url)}}}&lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;

{% endif %}

{% endfor %}
&lt;/ul&gt;


My menu structure in Drupal looks like:
Found a way to display the menu correctly.

{% import _self as menus %}

&lt;ul class="nav side-menu"&gt;

{% for item in items %}

{% if not item.below %}
  &lt;li {% if item.in_active_trail%}class="current-page"{% endif %}&gt;
    {{link(item.title, item.url)}}
    &lt;/li&gt;
{% else %}
  &lt;li&gt;&lt;a&gt;&lt;i class="fa fa-edit"&gt;&lt;/i&gt; {{item.title}} &lt;span class="fa fa-chevron-down"&gt;&lt;/span&gt;&lt;/a&gt;
    &lt;ul class="nav child_menu"&gt;

      {% for subItem in item.below %}
        &lt;li&gt;&lt;a href="{{ path(subItem.url.routename, {(subItem.url.routeParameters|keys|first) : (subItem.url.routeParameters|first)}) }}"&gt;{{subItem.title}}&lt;/a&gt;&lt;/li&gt;
      {% endfor %}
    &lt;/ul&gt;

{% endif %}

{% endfor %}
&lt;/ul&gt;