Skip to content

Commit

Permalink
fix external urls in navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
mcilurzo committed Oct 3, 2024
1 parent 3f9bb0e commit 9d6f851
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/_includes/navigation/second-level.njk
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

{% set level3Pages = collections.level3 | include("data.parent", level2.data.key) | sortByOrder %}
{%- for level3 in level3Pages %}
<sbb-navigation-link href="{{ level3.url}}" {% if level3.data.external == true %}target="_blank"{% endif %} {% if level3.url == page.url %}class="sbb-active" aria-current="page"{% endif %}>{{ level3.data.title }}</sbb-navigation-link>
<sbb-navigation-link href="{% if level3.data.external == true %}{{ level3.data.redirect}}{% else%}{{ level3.url}}{% endif %}" {% if level3.data.external == true %}target="_blank"{% endif %} {% if level3.url == page.url %}class="sbb-active" aria-current="page"{% endif %}>{{ level3.data.title }}</sbb-navigation-link>
{%- endfor %}
</sbb-navigation-list>
{%- endfor %}
Expand Down

0 comments on commit 9d6f851

Please sign in to comment.