Skip to content
This repository has been archived by the owner on Mar 31, 2023. It is now read-only.

Per #328, check that the link function has required data before generating a url #329

Merged
merged 1 commit into from
Mar 4, 2019
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
2 changes: 1 addition & 1 deletion components/_patterns/01-atoms/09-menu/tab/tab.twig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
{% endif %}
<li{{ attributes }}>
{# Detect if Drupal #}
{% if attributes %}
{% if (attributes and (link['#url'] is not empty)) %}
{{ link(link['#title'], link['#url'], { 'class' : link_classes }) }}
{% else %}
<a href="{{ tab_link }}" class="tabs__link tabs__link--local-tasks{% if key == 0 %} is-active{% endif %}">{{ tab_text }}</a>
Expand Down