Started refactor of URL system to better extend Laravel

This commit is contained in:
Dan Brown
2019-07-21 21:32:08 +01:00
parent 1e7df28238
commit 30da105812
4 changed files with 66 additions and 3 deletions

View File

@ -106,9 +106,7 @@ class LoginController extends Controller
$this->ldapService->syncGroups($user, $request->get($this->username()));
}
$path = session()->pull('url.intended', '/');
$path = baseUrl($path, true);
return redirect($path);
return redirect()->intended('/');
}
/**