Skip to content

Commit 05f0128

Browse files
author
Arjen
committed
Fix missing lang parameter in other examples url
1 parent 72c87d8 commit 05f0128

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wallet_core/mock_relying_party/templates/disclosed/attributes.askama

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424
{% else %}
2525
{% call attributes::attributes(attributes) %}
2626
{% endmatch %}
27-
27+
{# using it in the call directly didn't work #}
28+
{% let lang = base.selected_lang %}
2829
{# should be last for accessibility purposes #}
29-
{% call demo_bar::demo_bar(base.trans.demo_see_other, "../", base.trans.demo_see_examples, base.selected_lang, base.trans, base.available_languages, base.session_token, base.nonce) %}
30+
{% call demo_bar::demo_bar(base.trans.demo_see_other, format!("../?lang={}", lang), base.trans.demo_see_examples, lang, base.trans, base.available_languages, base.session_token, base.nonce) %}
3031
{% endblock %}

0 commit comments

Comments
 (0)