i have /privatepage that only authenticated user able to access
questions:
- how to redirect to /login, if i'm guest (not authenticated) and i hit /privatepage
- once i'm successfully login from /login, how to redirect to the previous page (/privatepage)
- similiar like no.2 - in /login page, if i come from /aboutpage (which a public page) - after login successfull, how do i redirect back to /aboutpage (or the previous page)?
Thank you,
AnD