|
|
@@ -123,7 +123,10 @@ Dispatcher::applyFilter('_callable', function($self, $params, $chain) {
|
|
|
return $ctrl;
|
|
|
}
|
|
|
|
|
|
- //Otherwise, send them to the login page
|
|
|
+ //Save the location they are going to
|
|
|
+ $value = array('controller' => $ctrl->request->controller, 'action' => $ctrl->request->action, 'args' => $ctrl->request->args);
|
|
|
+ Session::write('url', $value);
|
|
|
+ //Redirect them to the login page
|
|
|
return function() use ($request) {
|
|
|
return new Response(compact('request') + array('location' => '/login'));
|
|
|
};
|