diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-26 07:50:06 +0000 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2019-02-26 11:02:03 +0000 |
commit | 8bae7327bb636f46bda4eaded650d9f47050b60f (patch) | |
tree | 4a772b31692c8608277b2ca5dcdda1d127cbddae /perllib/FixMyStreet | |
parent | 777a1b20b93b3b00030925faa682d84fc668ee0c (diff) |
Fix admin index body dropdown redirect.
Diffstat (limited to 'perllib/FixMyStreet')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Admin/Bodies.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm index 8d3f0bb0d..56bc554e9 100644 --- a/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm +++ b/perllib/FixMyStreet/App/Controller/Admin/Bodies.pm @@ -24,11 +24,11 @@ sub index : Path : Args(0) { my ( $self, $c ) = @_; if (my $body_id = $c->get_param('body')) { - return $c->res->redirect( $c->uri_for( 'body', $body_id ) ); + return $c->res->redirect( $c->uri_for_action('admin/bodies/edit', [ $body_id ] ) ); } if (!$c->user->is_superuser && $c->user->from_body && $c->cobrand->moniker ne 'zurich') { - return $c->res->redirect( $c->uri_for( 'body', $c->user->from_body->id ) ); + return $c->res->redirect( $c->uri_for_action('admin/bodies/edit', [ $c->user->from_body->id ] ) ); } $c->forward( '/auth/get_csrf_token' ); |