There is nothing in place to return them to where they previously where prior to registration. You'd need to develop something like that. You'd likely need to keep track of their previous location either using a custom session variable or passing it to the registration form, inserting a hidden input into registration with the return URL, then redirecting to it after registration. Probably doable with CB Auto Actions to an extent, but if the link is say a Joomla menu item it won't work since Joomla menu items don't send where the user just came from.