Merge pull request #1442 from jonnybarnes/develop
MTM Save full url during login
This commit is contained in:
commit
f689128afc
1 changed files with 1 additions and 1 deletions
|
@ -20,7 +20,7 @@ class MyAuthMiddleware
|
||||||
{
|
{
|
||||||
if (Auth::check() === false) {
|
if (Auth::check() === false) {
|
||||||
// they’re not logged in, so send them to login form
|
// they’re not logged in, so send them to login form
|
||||||
redirect()->setIntendedUrl($request->url());
|
redirect()->setIntendedUrl($request->fullUrl());
|
||||||
|
|
||||||
return redirect()->route('login');
|
return redirect()->route('login');
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue