Save full url during login
This means the query params should be kept when redirecting back to `/auth?...` during the IndieAuth flow.
This commit is contained in:
parent
1cd4e54b44
commit
5d8929ac29
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