forked from deepStateMirrors/tabi
fix: multilingual issues in feeds and 'nav.html'
This commit is contained in:
parent
85ccc081e4
commit
e7dc5eb44e
5 changed files with 145 additions and 3 deletions
|
@ -43,7 +43,7 @@
|
|||
{# Check if the language code matches the default language #}
|
||||
{%- if lcode == config.default_language -%}
|
||||
{# If it does, link to the root path (no language code in URL) #}
|
||||
<a type="Button" href="{{ current_url | replace(from=current_path | default(value="") | truncate(length=4, end=""), to="/") }}">{{ language_name }}</a>
|
||||
<a type="Button" href="{{ current_url | replace(from='/' ~ lang ~ '/', to = '/') }}">{{ language_name }}</a>
|
||||
{%- else -%}
|
||||
{# Check if the current language is the default language #}
|
||||
{%- if lang == config.default_language -%}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue