What is list state in email template and where it comes from?
-
hi, facing an issue described in https://github.com/FusionAuth/fusionauth-issues/issues/2481#issuecomment-4518879119, and one of the comments has this solution:
[#list state!{} as key, value][#if key != "tenantId" && key != "client_id" && value??][#assign url = url + "&" + key?url + "=" + value?url/][/#if][/#list]it fixed the issue,
but what is list state exactly, i could find it in my email template, but somehow this condition gets executed, what is or where state object is coming from? -
My understanding is that state is a map of parameters passed into the template context by FusionAuth, not something you explicitly define in the template itself. If that snippet works even though you can't find a local declaration, it's likely being injected by the email rendering process. Have you checked the template variable documentation or tried outputting the contents of state to see which keys are actually available at runtime?