Fixed login 'intended' redirect for custom urls.

Also changed social account detach wording.
This commit is contained in:
Dan Brown
2016-08-21 14:49:40 +01:00
parent 437dce7756
commit f8a299caee
3 changed files with 15 additions and 5 deletions

View File

@ -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);
}
/**