Ready to post? First try searching for your answer. Hello,
I have an application whit DEV and localhost environment in the same tenant. I need to redirect user when verify email to the each base URL.
Im using actually
{% if application.callback_domain == 'localhost' %}https://localhost:3001{% else %}{{ application.callback_domain }}{% endif %}
But always this condition falls in else statement.Any suggestion?
Hi there!
Welcome back to the Auth0 Community!
Thank you for posting your question. Your condition statement is ok, but the reason why itโs not working may be due to the full URL format that includes the protocol (e.g., http://localhost
or https://localhost
. Try to edit your condition to this:
{% if application.callback_domain contains 'localhost' %}
https://localhost:3001
{% else %}
{{ application.callback_domain }}
{% endif %}
Problem statement
This article details how to handle the redirection of users to an application after they complete email verification. There are many methods, such as verification emails, Management API email job, Management API verification ticket, etc.
This article also explains how to customize the redirect URL for each case.
Solution
These are the available methods to send a verification email or ticket to end users and a description of the behavior for the subsequent redirection:
Case 1
โฆ
Thanks
Dawid