Add the lang prefix to all links

This commit is contained in:
Greg Burri 2025-03-26 12:03:31 +01:00
parent b39cb1c067
commit 3089ede6eb
7 changed files with 40 additions and 11 deletions

View file

@ -8,7 +8,7 @@
{% match user %}
{% when Some with (user) %}
<a class="create-recipe" href="/recipe/new" >{{ tr.t(Sentence::CreateNewRecipe) }}</a>
<a href="/user/edit">
<a href="/{{ tr.current_lang_code() }}/user/edit">
{% if user.name == "" %}
{{ user.email }}
{% else %}
@ -16,7 +16,7 @@
{% endif %}
</a> / <a href="/signout">{{ tr.t(Sentence::SignOut) }}</a>
{% when None %}
<a href="/signin" >{{ tr.t(Sentence::SignInMenu) }}</a>/<a href="/signup">{{ tr.t(Sentence::SignUpMenu) }}</a>/<a href="/ask_reset_password">{{ tr.t(Sentence::LostPassword) }}</a>
<a href="/{{ tr.current_lang_code() }}/signin" >{{ tr.t(Sentence::SignInMenu) }}</a>/<a href="/{{ tr.current_lang_code() }}/signup">{{ tr.t(Sentence::SignUpMenu) }}</a>/<a href="/{{ tr.current_lang_code() }}/ask_reset_password">{{ tr.t(Sentence::LostPassword) }}</a>
{% endmatch %}
<select id="select-website-language">