From 05f0128ee4792e6bd2f648fcb4861e1e6108f35b Mon Sep 17 00:00:00 2001 From: Arjen Date: Sat, 10 Aug 2024 22:05:57 +0200 Subject: [PATCH] Fix missing lang parameter in other examples url --- .../mock_relying_party/templates/disclosed/attributes.askama | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wallet_core/mock_relying_party/templates/disclosed/attributes.askama b/wallet_core/mock_relying_party/templates/disclosed/attributes.askama index 1251c33f4..62a30190d 100644 --- a/wallet_core/mock_relying_party/templates/disclosed/attributes.askama +++ b/wallet_core/mock_relying_party/templates/disclosed/attributes.askama @@ -24,7 +24,8 @@ {% else %} {% call attributes::attributes(attributes) %} {% endmatch %} - +{# using it in the call directly didn't work #} +{% let lang = base.selected_lang %} {# should be last for accessibility purposes #} -{% 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) %} +{% 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) %} {% endblock %}