My company uses FusionAuth's email templates for many tenants. We would like for each tenant to be able to point to several URLs through the email templates and for a calculation of the URL to be done within the template using Freemarker's replacement variables.
For example, a link in the email sent from tenant A should point to domains a.com and b.com and the choice of which to point to should be done dynamically depending on the site which sent the request.
Currently, this is made possible on forgot-password email requests through the passing of a state variable which contains the URL (or anything else). Unfortunately, the API does not allow for the passing of this state variable for other email requests, such as verify-email requests, which only allow access to the tenant and user objects.
And so, we've had to hard-code the URL into the email templates without a state variable, and tenants can only point to one domain as a result.
Is there a way to do this dynamic URL calculation in the email templates for email-verification, etc, which do not have this state variable?