X-Git-Url: https://ruin.nu/git/?a=blobdiff_plain;f=lib%2FNDWeb%2FController%2FRoot.pm;h=09ace65bb2ac708d886df6c5b0375329918b5a5e;hb=09612ee9bbec26e1ee659f5ee925ef63a01d61b2;hp=9ce7f8c28c3640dbc5bcdbba70ae4578fc85f383;hpb=22cfc88a54f687427a45b3f9e1c2cb104033028d;p=ndwebbie.git diff --git a/lib/NDWeb/Controller/Root.pm b/lib/NDWeb/Controller/Root.pm index 9ce7f8c..09ace65 100644 --- a/lib/NDWeb/Controller/Root.pm +++ b/lib/NDWeb/Controller/Root.pm @@ -147,7 +147,7 @@ sub auto : Private { sub redirect : Private { my ($self, $c) = @_; - $c->res->redirect($c->uri_for('/'.$c->flash->{referrer})); + $c->res->redirect($c->uri_for('/'.$c->session->{referrer})); } sub access_denied : Private { @@ -219,7 +219,7 @@ sub end : ActionClass('RenderView') { $c->stash(birthdays => $birthdays->fetchall_arrayref({})); if ($c->res->status == 200 || $c->req->method eq 'GET'){ - $c->flash(referrer => $c->req->path); + $c->session->{referrer} = $c->req->path; } }