Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

Commit

Permalink
[Upg] redirect attempted url after login
Browse files Browse the repository at this point in the history
  • Loading branch information
MrJuliuss committed Sep 10, 2013
1 parent 9a9e3df commit f1c32f0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
{
if(!Sentry::check())
{
// save the attempted url
Session::put('attemptedUrl', URL::current());

return Redirect::route('getLogin');
}

Expand All @@ -14,7 +17,10 @@
{
if(Sentry::check())
{
return Redirect::route('indexDashboard');
$url = Session::get('attemptedUrl');
Session::forget('attemptedUrl');

return Redirect::to($url);
}
});

Expand Down

0 comments on commit f1c32f0

Please sign in to comment.