Use absLangURL function for "Home" links

This should address 404 issues when using only a single language.
This commit is contained in:
Nik Wolfgramm 2019-12-07 14:50:16 +01:00 committed by GitHub
parent 94d0294ef6
commit d436888220
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@
{{ $currentNode := . }}
{{ $showvisitedlinks := .Site.Params.showVisitedLinks }}
<a class="d-block h4 back-btn"
href="{{ .Site.BaseURL }}{{ .Language.LanguageName | lower }}">{{ i18n "Back-home"}}</a>
href="{{ "/" | absLangURL }}">{{ i18n "Back-home"}}</a>
{{range .Site.Home.Sections.ByWeight}}
{{ template "section-tree-nav" dict "sect" . "currentnode" $currentNode "showvisitedlinks" $showvisitedlinks}}
{{end}}
@ -106,4 +106,4 @@
</li>
{{ end }}
{{ end }}
{{ end }}
{{ end }}