FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    What is list state in email template and where it comes from?

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    694
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • M
      mcsymiv
      last edited by

      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?

      W 1 Reply Last reply Reply Quote 0
      • W
        wordletter144 @mcsymiv
        last edited by

        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?

        1 Reply Last reply Reply Quote 0
        • First post
          Last post