Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- my $return = $c->req->uri;
- if ( $c->controller->can('redirect_for_action') ) {
- my $redir = $c->controller->redirect_for_action( $c->action );
- if ( $redir ) {
- $return = ref $redir ? $redir->($c) : $redir;
- }
- }
- $c->res->redirect($c->uri_for_action('/login', { return => $return }));
Add Comment
Please, Sign In to add comment