Remote widget login redirect

Is there any way to have the login remote widget automatically redirect to a specific page or at least to the edit profile page after successful login?

FYI, I was using a local copy of the remotetools.js file because of other issues (conflicts with jQuery strict mode), so it was easy enough for me to change the href of the default link that is sent. When looking at the code, there is a “relocateTo” parameter that can be sent with the website url, so it looks possible to do without modifying the js file, but I didn’t try it.