From d4368882207e62f21da78ae3e2d7b6896bd335fe Mon Sep 17 00:00:00 2001 From: Nik Wolfgramm Date: Sat, 7 Dec 2019 14:50:16 +0100 Subject: [PATCH] Use absLangURL function for "Home" links This should address 404 issues when using only a single language. --- layouts/partials/default.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/default.html b/layouts/partials/default.html index 15a42a3..026acac 100644 --- a/layouts/partials/default.html +++ b/layouts/partials/default.html @@ -8,7 +8,7 @@ {{ $currentNode := . }} {{ $showvisitedlinks := .Site.Params.showVisitedLinks }} {{ i18n "Back-home"}} + href="{{ "/" | absLangURL }}">{{ i18n "Back-home"}} {{range .Site.Home.Sections.ByWeight}} {{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}} {{end}} @@ -106,4 +106,4 @@ {{ end }} {{ end }} -{{ end }} \ No newline at end of file +{{ end }}