mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-05-21 22:36:05 +08:00
Fixed login 'intended' redirect for custom urls.
Also changed social account detach wording.
This commit is contained in:
@ -145,7 +145,9 @@ class AuthController extends Controller
|
||||
auth()->login($user);
|
||||
}
|
||||
|
||||
return redirect()->intended($this->redirectPath());
|
||||
$path = session()->pull('url.intended', '/');
|
||||
$path = baseUrl($path, true);
|
||||
return redirect($path);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user