When a user tries to access our site via a link (for example, by going to www.website.com/privatepage), they are redirected to the login page. After logging in, we want to redirect them to the specified URL - how do you do this?
We also have a precedent when a user logs in from the home page or goes directly to the login page without a destination URL - in this case we would like to redirect them to the default page.
Can someone help me figure this out?
javascript jquery redirect php codeigniter
Walker
source share