Redirection to the page preceding a connection

Hi,
In my project, certain steps require that the user is logged in to be able to continue. It is then first redirected to the connection page (if it is not) before being able to continue. Is it possible that he is redirected to the page where he was before he was forced to log in (to avoid him repeating all the ones he has already done previously)?
Thanks

Community Page
Last updated: