diff --git a/app/Http/Controllers/Passport/LoginController.php b/app/Http/Controllers/Passport/LoginController.php index b785cecb..acb90fd0 100755 --- a/app/Http/Controllers/Passport/LoginController.php +++ b/app/Http/Controllers/Passport/LoginController.php @@ -46,9 +46,10 @@ class LoginController extends Controller $request->session()->put('is_admin', true); } } - $location = url('/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard'); if (config('v2board.app_url')) { $location = config('v2board.app_url') . '/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard'; + } else { + $location = url('/#/' . $request->input('redirect') ? $request->input('redirect') : 'dashboard'); } header('Location:' . $location); }