Browse Source

fix redirect after logging in

pull/3/head
Aaron Parecki 9 years ago
parent
commit
a5a016b7ae
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      controllers/Controller.php

+ 1
- 1
controllers/Controller.php View File

@ -15,7 +15,7 @@ class Controller {
if(!session('user_id')) {
session_destroy();
$response->setStatusCode(302);
$response->headers->set('Location', '/login?return_to='.$request->getPathInfo());
$response->headers->set('Location', '/login?return_to='.$request->getRequestURI());
return false;
} else {
return true;

Loading…
Cancel
Save