Ha I’m a dummy, that works perfectly. Is there a way to get it to redirect to the page the user was attempting to view after they successfully login? Right now in login.php, I have logins redirecting to a single page (‘client’), rather than the redirect being contextually aware…
if($user = $site->user(get('username')) and $user->login(get('password'))) {
// redirect to the homepage
// if the login was successful
go('client');
} else {
// make sure the alert is being
// displayed in the template
$error = true;
}
EDIT:
I found this same question asked here:
http://forum.getkirby.com/t/redirecting-user-after-logging-in/492/3