From 7831179e92885e87236d784cdcf3a3946a8e466c Mon Sep 17 00:00:00 2001 From: briskt <3172830+briskt@users.noreply.github.com> Date: Tue, 25 Jun 2024 11:56:16 +0800 Subject: [PATCH 1/6] PR feedback: use correct escaping --- .../material/default/selectidp-links.twig | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/modules/material/themes/material/default/selectidp-links.twig b/modules/material/themes/material/default/selectidp-links.twig index 51af837..9272dfb 100644 --- a/modules/material/themes/material/default/selectidp-links.twig +++ b/modules/material/themes/material/default/selectidp-links.twig @@ -10,7 +10,7 @@ const idpInput = document.createElement('input'); idpInput.type = 'hidden'; - idpInput.name = '{{ returnIDParam|e }}'; + idpInput.name = '{{ returnIDParam|e('js')|raw }}'; idpInput.value = id; document.querySelector('form').appendChild(idpInput); @@ -39,7 +39,7 @@ {% if not helpCenterUrl ?? '' is empty %} @@ -51,9 +51,9 @@ {% include 'announcement.twig' %}