aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller
diff options
context:
space:
mode:
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r--perllib/FixMyStreet/App/Controller/Admin/Bodies.pm4
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' );