diff options
Diffstat (limited to 'lib/Narwhal/Component')
-rw-r--r-- | lib/Narwhal/Component/Redirect.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |