How can we redirect to previous page after login in cibonfire?

If some module require login to view, than the code there will check for login and if it is not logged in, it will redirect to login page. After login we want to get back to same module. How can we do so.

Thanks