Commit 5ddcd4d7 authored by Hiro's avatar Hiro 🏄
Browse files

Fix url

parent bdb8d39c
......@@ -22,7 +22,8 @@
{% 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) %}
<a class="nav-link" href="{{ this.parent.path }}/{{ item.path }}">{{ item.label }}
{% 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 }}
{% endif %}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment