Redirect URL for email verification not working as expected

Hi Team,

We have a react next.js application integrated with Auth0.

I ran into an issue where the RedirectURL that I provide in the verification email template does not work as expected.

The RedirectURL contains a route along with the base url, {base_url}/login/email
I observe the below behavior:

  1. If I click on verify email link the link opens in the new tab but it removes the query params that auth0 adds - (supportsignup=true&supportforgotpassword=true&email=man22%40shark.com&message=your%20email%20was%20verified.%20you%20can%20continue%20using%20the%20application.&success=true&code=success#)
    and the path /email/login and the url looks something like {base_URL}/#/inbox
    where inbox is the path that was there in mailbox url where I received the verify email.

I would want the redirectURL to work correctly and auth0 to redirect to {base_URL}/login/email.

Could you please suggest how to make this work?

Hi @manleen.bhatia ,

Welcome to the Community!

Please refer to below link and let us know if it helps:

Redirect URL doesn’t work

1 Like