Skip to content

Commit

Permalink
again, i really wanted mapping here
Browse files Browse the repository at this point in the history
  • Loading branch information
doy committed Feb 18, 2011
1 parent 4875037 commit b815a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Narwhal/Component/Redirect.pm
Expand Up @@ -20,7 +20,7 @@ sub temporary {
sub _get_location {
my $self = shift;
my ($req) = @_;
my $to = $req->env->{'plack.router.match'}->route->defaults->{to};
my $to = $req->env->{'plack.router.match'}->mapping->{to};
die "must supply a location to redirect to" unless $to;
return $to;
}
Expand Down

0 comments on commit b815a6f

Please sign in to comment.