Quantcast
Channel: Active questions tagged javascript - Stack Overflow
Viewing all articles
Browse latest Browse all 140042

Email link that opens in existing tab if the domain is the same

$
0
0

I have user registration process where at the end of it an email is sent to the registering user to confirm the user's email. The user then goes to his/her email and finds the email with the confirmation link.

At this point the user has two tabs open (but can have more) - the email tab and the tab to my domain, lets call it mydomain.com.

Is it possible, that when the user clicks the confirmation link in the email that the mydomain.com tab thats already open gets updated?

Right now when the user clicks the confirmation link, a new tab to mydomain.com gets created, which creates two instances to the site, which is fine but not ideal.

I know I can create a function that periodically checks if the user confirmed or open a websocket, but I am wondering if there is something simpler.


Viewing all articles
Browse latest Browse all 140042

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>