Skip to content

Commit

Permalink
Prevent 404 on link in menu with sub pages
Browse files Browse the repository at this point in the history
  • Loading branch information
tiktuk authored May 22, 2019
1 parent 8e4c6ef commit 1eb6175
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/partials/navigation.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{% set current_page = (p.active or p.activeChild) ? 'current-page-item' : '' %}
{% if p.children.visible.count > 0 %}
<li class="has-children {{ current_page }}">
<a href="{{ p.url }}">
<a href="{% if p.routable %}{{ p.url }}{% else %}#{% endif %}">
{% if p.header.icon %}<i class="fa fa-{{ p.header.icon }}"></i>{% endif %}
{{ p.menu }}
</a>
Expand Down Expand Up @@ -44,4 +44,4 @@
</a>
</li>
{% endfor %}
</ul>
</ul>

0 comments on commit 1eb6175

Please sign in to comment.