Register from not from main site.

How to do that when guest clicks “Register/Login and Submit”, he would be redirected to current site, not the main. It’s confusing when user is redirected to another site (main MU site).