From 733dfdbc1c074530984dc0f7a78c824e9ccca62f Mon Sep 17 00:00:00 2001 From: Bernat Moix Date: Thu, 16 Oct 2025 09:47:19 +0200 Subject: [PATCH] fix: use providerId instead of alias for social provider icons Identity provider icons were only displayed when the alias exactly matched predefined values. This fixes the issue by checking the providerId (provider type) instead of the alias, allowing custom aliases while maintaining correct icon display. Closes #43515 Signed-off-by: Bernat Moix --- .../main/resources/theme/keycloak.v2/login/social-providers.ftl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl b/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl index 76f80e371f4..f526f3bec0e 100644 --- a/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl +++ b/themes/src/main/resources/theme/keycloak.v2/login/social-providers.ftl @@ -14,7 +14,7 @@ <#if p.iconClasses?has_content> ${p.displayName!} <#else> - <#switch p.alias> + <#switch p.providerId> <#case "google">