Hi!
Some context: I have three applications named: local
, stage
and prod
. Whenever a user signs up in my application, Auth0 sends them a verification email. I want the user to get redirected to a particular URL based on how they sign up(either locally, through stage or prod).
I tried doing this by configuring the Redirect To field in verification email dashboard. Like this:
Here’s the full value:
{% if application.name == 'local' %} http://localhost:4000/local {% elsif application.name == 'stage' %} https://<link-to-stage-app> {% else %} https://<link-to-prod> {% endif %}
But this doesn’t work. I always get redirected to prod link after verifying my email. What did I do wrong here? What should be the correct approach?
Thanks!