Merge pull request #1441 from jonnybarnes/1440-make-login-work-with-indieauth-flow

Save full url during login
This commit is contained in:
Jonny Barnes 2024-06-22 20:30:51 +01:00 committed by GitHub
commit de3661ab77
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,7 +20,7 @@ class MyAuthMiddleware
{ {
if (Auth::check() === false) { if (Auth::check() === false) {
// theyre not logged in, so send them to login form // theyre 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');
} }