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:
Jonny Barnes 2024-06-22 20:28:18 +01:00
parent 1cd4e54b44
commit 5d8929ac29
Signed by: jonny
SSH key fingerprint: SHA256:CTuSlns5U7qlD9jqHvtnVmfYV3Zwl2Z7WnJ4/dqOaL8

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');
} }