It literally can go right there after the URL in the href of the a tag as far as normal html goes. It’s effectively a GET request over http, so you can append
?returnTo=https://subdomain.example.com&client_id=whatevermyclientidis
I’m not familiar with react, if that somehow makes that harder than that.