Put the lang in front of url (WIP)

This commit is contained in:
Greg Burri 2025-03-26 02:08:20 +01:00
parent 418d31a127
commit b39cb1c067
4 changed files with 8 additions and 6 deletions

View file

@ -1,6 +1,6 @@
{% macro recipe_item(id, title, is_current) %}
<li>
<a href="/recipe/view/{{ id }}" class="recipe-item
<a href="/{{ tr.current_lang_code() }}/recipe/view/{{ id }}" class="recipe-item
{%~ if is_current %}
current
{% endif %}" id="recipe-{{ id }}"

View file

@ -1 +1 @@
<a class="title" href="/"><img class="logo" src="/static/logo.svg" alt="logo">{{ tr.t(Sentence::MainTitle) }}</a>
<a class="title" href="/{{ tr.current_lang_code() }}/"><img class="logo" src="/static/logo.svg" alt="logo">{{ tr.t(Sentence::MainTitle) }}</a>