Email Ticket verification success Message ( Pop Up )

There are two domains sites
let a : http://abc.ke/
let b : http://xyz.ke/
(i) If user is on a and clicks sign In then the window URL ( browser search bar URL) should be http://abc.ke/dashboard,(http://abc.ke/transactions),(http://abc.ke/profile) ,
and so on…
(ii) If user is on b and clicks sign In then the window URL ( browser search bar URL) should be
http://xyz.ke/dashboard, http://xyz.ke/transactions, http://xyz/profile,
and so on…
Issue:
Then There is one problem during the success message Popup ( screen ) as providing the auth0 having back to login button. On clicking back to login page we are redirecting to the this url
https://www.xyz.ke/login” then how we could achieve that it should redirect on specific domain on which the user is whether it is “https://xyz.ke/ or http://abc.ke/” ?
Please help me in this silly use case.