Fix the consent templates failing to render in tests

This commit is contained in:
Quentin Gliech
2025-12-03 10:27:18 +01:00
parent 8dd1c3fa78
commit 8a39f4181f
3 changed files with 4 additions and 4 deletions

View File

@@ -27,7 +27,7 @@ Please see LICENSE files in the repository root for full details.
{{ _('mas.consent.continue_to', client_name=client_name) }}
</h1>
<p class="text [&>span]:whitespace-nowrap [&>span]:text-[var(--cpd-color-text-link-external)]">
{{ _("mas.consent.this_will_setup", client_name=client_name, client_uri=(client.client_uri | simplify_url), server_name=branding.server_name) }}
{{ _("mas.consent.this_will_setup", client_name=client_name, client_uri=((client.client_uri or grant.redirect_uri) | simplify_url), server_name=branding.server_name) }}
</p>
</div>
</header>

View File

@@ -30,7 +30,7 @@ Please see LICENSE files in the repository root for full details.
</h1>
<p class="text [&>span]:whitespace-nowrap [&>span]:text-[var(--cpd-color-text-link-external)]">
{{ _("mas.device_consent.this_will_setup", client_name=client_name, client_uri=(client.client_uri | simplify_url), server_name=branding.server_name) }}
{{ _("mas.device_consent.this_will_setup", client_name=client_name, client_uri=((client.client_uri or "") | simplify_url), server_name=branding.server_name) }}
</p>
<div class="session-card mt-4">