From b815a6f9be0eb015728b3fb7e8b0ec6cfba94dfe Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 18 Feb 2011 00:26:44 -0600 Subject: again, i really wanted mapping here --- lib/Narwhal/Component/Redirect.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Narwhal/Component/Redirect.pm b/lib/Narwhal/Component/Redirect.pm index 58a8478..06332de 100644 --- a/lib/Narwhal/Component/Redirect.pm +++ b/lib/Narwhal/Component/Redirect.pm @@ -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; } -- cgit v1.2.3-54-g00ecf