Skip to content

Commit

Permalink
Fix missing lang parameter in other examples url
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjen committed Aug 10, 2024
1 parent 72c87d8 commit 05f0128
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}

0 comments on commit 05f0128

Please sign in to comment.