Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
{%- set classes = classes|merge([options.lastClass]) %}
{%- endif %}

{%- set target = item.linkAttributes and item.linkAttributes['target'] ? item.linkAttributes['target'] : '_self' %}

{% set is_active = matcher.isCurrent(item) or matcher.isAncestor(item, options.matchingDepth) or item.getExtra('always_open') %}

{# Mark item as "leaf" (no children) or as "branch" (has children that are displayed) #}
Expand Down Expand Up @@ -60,12 +62,12 @@
</li>
{% else %}
<li class="nav-item">
<a class="nav-link" href="{{ item.uri }}">
<a class="nav-link" href="{{ item.uri }}" target="{{ target }}">
<span class="nav-link-icon d-md-none d-lg-inline-block">
{{ block('icon') }}
</span>
<span class="nav-link-title">
{{ item.label|trans }}
{{ item.label|trans }} {% if target == '_blank' %}{{ ux_icon('tabler:external-link', {'class': 'icon icon-sm ms-1 mb-2 opacity-75'}) }}{% endif %}
</span>
</a>
</li>
Expand Down