mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-12 16:44:08 -08:00
Fixes #2448 - redirect to intended page
This commit is contained in:
parent
fe041b66c6
commit
38b188f6ff
|
@ -79,7 +79,7 @@ class DashboardController extends Controller
|
||||||
return View::make('dashboard')->with('asset_stats', $asset_stats);
|
return View::make('dashboard')->with('asset_stats', $asset_stats);
|
||||||
} else {
|
} else {
|
||||||
// Redirect to the profile page
|
// Redirect to the profile page
|
||||||
return redirect()->route('view-assets');
|
return redirect()->intended('account/view-assets');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,7 @@ class RedirectIfAuthenticated
|
||||||
public function handle($request, Closure $next, $guard = null)
|
public function handle($request, Closure $next, $guard = null)
|
||||||
{
|
{
|
||||||
if (Auth::guard($guard)->check()) {
|
if (Auth::guard($guard)->check()) {
|
||||||
return redirect('/');
|
return redirect()->intended('/');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
|
Loading…
Reference in a new issue