Skip to content

Commit

Permalink
fix: header non local links
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Rogan committed Oct 19, 2020
1 parent e3f3ad9 commit feba4d9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/wmcads/patterns/header/_header.njk
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
{% set navItemContent = " and tickets" if navItem.name === "Swift and tickets" else navItem.name -%}
<!-- allow primary (level 1) item to link if specified -->
{% if params.linkTopLevel -%}{{navItemIcon}}
<a href="/{{ navItem.name | lower | replace(" ", "-") }}/" title="{{ navItem.name }} page" target="_self" class="wmcads-mega-menu__primary-menu-link" >
<a href="$*baseUrl/{{ navItem.name | lower | replace(" ", "-") }}/" title="{{ navItem.name }} page" target="_self" class="wmcads-mega-menu__primary-menu-link" >
{{navItemIcon}}{{ navItemContent }}
</a>
<!-- if not linked use a button -->
Expand All @@ -85,7 +85,7 @@
<ul class="wmcads-mega-menu__sub-menu">
{% for subnavItem in navItem.subnavItems -%}
<li class="wmcads-mega-menu__sub-menu-item">
<a href="/{{ navItem.name | lower | replace(" ", "-") }}/{{ subnavItem.name | lower | replace(" ", "-") }}/" class="wmcads-mega-menu__sub-menu-link">
<a href="$*baseUrl/{{ navItem.name | lower | replace(" ", "-") }}/{{ subnavItem.name | lower | replace(" ", "-") }}/" class="wmcads-mega-menu__sub-menu-link">
{% if subnavItem.icon -%}
<!-- Show submenu (level 2) item icon if specified -->
<svg class="wmcads-mega-menu__sub-menu-link-icon">
Expand Down

0 comments on commit feba4d9

Please sign in to comment.