Skip to content
Snippets Groups Projects
Commit 6a1fa926 authored by Eric Bremner's avatar Eric Bremner
Browse files

ISTWCMS-4571-4548: adding correct home link

parent 2ed2e71e
No related branches found
No related tags found
1 merge request!16ISTWCMS-4571-4548: adding correct home link
...@@ -20,7 +20,8 @@ ...@@ -20,7 +20,8 @@
<div class="uw-header__center"> <div class="uw-header__center">
<div class="uw-header__site-name"> <div class="uw-header__site-name">
{% include '@components/site-name/site-name.twig' with { {% include '@components/site-name/site-name.twig' with {
'site_name': site_name 'site_name': site_name,
'home_link': home_link
} %} } %}
</div> </div>
<button class="uw-navigation-button" aria-controls="uw-header__navigation" aria-expanded="false"> <button class="uw-navigation-button" aria-controls="uw-header__navigation" aria-expanded="false">
...@@ -32,7 +33,8 @@ ...@@ -32,7 +33,8 @@
{% include "@components/menu/menu--horizontal/menu--horizontal.twig" with { {% include "@components/menu/menu--horizontal/menu--horizontal.twig" with {
'modifier_classes': 'main', 'modifier_classes': 'main',
'menu_name': 'horizontal', 'menu_name': 'horizontal',
'items': nav_items 'items': nav_items,
'home_link': home_link
}%} }%}
{% include "@components/menu/menu--secondary/menu--secondary.twig" with { {% include "@components/menu/menu--secondary/menu--secondary.twig" with {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
<nav class="uw-horizontal-nav {% if modifier_classes %} uw-horizontal-nav--{{ modifier_classes }}{% endif %}"> <nav class="uw-horizontal-nav {% if modifier_classes %} uw-horizontal-nav--{{ modifier_classes }}{% endif %}">
<div class="uw-horizontal-nav--wrapper"> <div class="uw-horizontal-nav--wrapper">
<div class="uw-horizontal-nav--home"> <div class="uw-horizontal-nav--home">
<a href="/home" class="uw-site-home__link"> <a href="{{ home_link }}" class="uw-site-home__link">
<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M21 13v10h-6v-6h-6v6h-6v-10h-3l12-12 12 12h-3zm-1-5.907v-5.093h-3v2.093l3 3z"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><path d="M21 13v10h-6v-6h-6v6h-6v-10h-3l12-12 12 12h-3zm-1-5.907v-5.093h-3v2.093l3 3z"/></svg>
<span class="off-screen">Home</span> <span class="off-screen">Home</span>
</a> </a>
......
<div class="uw-site-name"> <div class="uw-site-name">
<div class="uw-site-name__wrapper"> <div class="uw-site-name__wrapper">
<a class="uw-site-name__link" href="{{ url }}" title="{{ 'Home'|t }}" rel="home"> <a class="uw-site-name__link" href="{{ home_link }}" title="{{ 'Home'|t }}" rel="home">
<h1 class="uw-site-name__text">{{ site_name }}</h1> <h1 class="uw-site-name__text">{{ site_name }}</h1>
</a> </a>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment