{{ site.BaseURL | absLangURL }} not working

HI
I have trouble adding the LANG at the end of a URL
My config.yaml

baseURL: ""
languageCode: en-us
title: YES
theme: toha

# Manage languages
defaultContentLanguage: en
defaultContentLanguageInSubdir: true

languages:
  en:
    languageName: EN
    weight: 1
  de:
    languageName: DE
    weight: 2
  fr:
    languageName: FR
    weight: 3
  es:
    languageName: ES
    weight: 4

in my menu i have

...
<a href="{{ site.BaseURL | relLangURL }}">
    <img src="../{{ site.Params.header_img }}" id="logo" alt="{{- site.Title -}}"> 
</a>
...
<li class="nav-item">
          <a class="nav-link" href=" {{ site.BaseURL | absLangURL }} ">{{ i18n "home" }}</a>
</li>

both result in


<a href="//localhost:1313/"> <img src="http://localhost:1313/img/header_250.png" id="logo" alt="YES"> </a>
... 
<li class="nav-item"> <a class="nav-link" href="http://localhost:1313/">Home</a></li>

without /en , /de, fr or /es… an the end of the URL. Everythings else works
any hints?
thanks rob

Have a look at this post:

Also use the forum search. Most of the time you will find the answer to your question.

thanks - You are right! I should have found it myself , but i did not …

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.