Skip to content

Commit 0863c00

Browse files
committed
Just add an echo to see if language is coming through or whether it's a gql thing
1 parent b84234f commit 0863c00

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/components/styles/global_nav.html.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
<ul data-component="nav-double-intro">
1212
{%~ for navItem in navigation %}
1313
<li class="top-nav-item has-children">
14-
<a href="{{ navItem.titleLink }}" class="nav-link" hreflang="{{ navItem.language }}">{{ navItem.title }}</a>
14+
{% if navItem.language is defined %}{{ navItem.language }}{% endif %}
15+
<a href="{{ navItem.titleLink }}" class="nav-link">{{ navItem.title }}</a>
1516
<div class="nav__submenu" data-nav="submenu" style="display: none;">
1617
<div class="l-center">
1718
<div class="nav__submenu__intro">
@@ -29,7 +30,7 @@
2930
<ul>
3031
{%~ for child in navItem.children %}
3132
<li{{ child.startNewColumn is defined and child.startNewColumn ? ' class="break-after"' : '' }}>{# -#}
32-
<a href="{{ child.url }}" hreflang="{{ child.language }}">{{ child.title }}</a>{# -#}
33+
<a href="{{ child.url }}">{{ child.title }}</a>{# -#}
3334
</li>
3435
{%~ endfor %}
3536
</ul>

0 commit comments

Comments
 (0)