This commit is contained in:
hiro 2018-12-11 14:44:57 +01:00
parent 5ddcd4d7c3
commit 24b67eb137

View File

@ -22,7 +22,7 @@
{% for id, item in bag(menubag).items() %}
<li{% if this.is_child_of(item.path) %} class="nav-item active" {% else %} class="nav-item"{% endif %}>
{% if this.is_child_of(this.parent) %}
{% set link = this.parent.path + "/" + item.path}
{% set link = this.parent.path + "/" + item.path %}
<a class="nav-link" href="{{ link|url }}">{{ item.label }}
{% else %}
<a class="nav-link" href="{{ item.path|url}}">{{ item.label }}