aboutsummaryrefslogtreecommitdiffstats
path: root/perllib
diff options
context:
space:
mode:
Diffstat (limited to 'perllib')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm (renamed from perllib/FixMyStreet/App/Controller/Reports/New.pm)8
-rw-r--r--perllib/FixMyStreet/App/Controller/Tokens.pm2
-rw-r--r--perllib/FixMyStreet/Map.pm2
3 files changed, 6 insertions, 6 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Reports/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 3f0b949a6..ffdd44f9d 100644
--- a/perllib/FixMyStreet/App/Controller/Reports/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -1,4 +1,4 @@
-package FixMyStreet::App::Controller::Reports::New;
+package FixMyStreet::App::Controller::Report::New;
use Moose;
use namespace::autoclean;
@@ -16,7 +16,7 @@ use mySociety::EmailUtil;
=head1 NAME
-FixMyStreet::App::Controller::Reports::New
+FixMyStreet::App::Controller::Report::New
=head1 DESCRIPTION
@@ -88,7 +88,7 @@ sub report_new : Path : Args(0) {
&& $c->forward('load_councils');
# create a problem from the submitted details
- $c->stash->{template} = "reports/new/fill_in_details.html";
+ $c->stash->{template} = "report/new/fill_in_details.html";
$c->forward('setup_categories_and_councils');
$c->forward('generate_map');
@@ -1129,7 +1129,7 @@ sub redirect_or_confirm_creation : Private {
# If confirmed send the user straigh there.
if ( $report->confirmed ) {
- my $report_uri = $c->uri_for( '/reports', $report->id );
+ my $report_uri = $c->uri_for( '/report', $report->id );
$c->res->redirect($report_uri);
$c->detach;
}
diff --git a/perllib/FixMyStreet/App/Controller/Tokens.pm b/perllib/FixMyStreet/App/Controller/Tokens.pm
index 9a719a59d..1d64d9e18 100644
--- a/perllib/FixMyStreet/App/Controller/Tokens.pm
+++ b/perllib/FixMyStreet/App/Controller/Tokens.pm
@@ -79,7 +79,7 @@ Redirect user to continue filling in a partial problem.
sub redirect_to_partial_problem : Path('/L') {
my ( $self, $c, $token_code ) = @_;
- my $url = $c->uri_for( "/reports/new", { partial => $token_code } );
+ my $url = $c->uri_for( "/report/new", { partial => $token_code } );
return $c->res->redirect( $url );
}
diff --git a/perllib/FixMyStreet/Map.pm b/perllib/FixMyStreet/Map.pm
index 64cc38a2e..edb4fedc9 100644
--- a/perllib/FixMyStreet/Map.pm
+++ b/perllib/FixMyStreet/Map.pm
@@ -38,7 +38,7 @@ sub header {
my $cobrand = Page::get_cobrand($q);
my $cobrand_form_elements =
Cobrand::form_elements( $cobrand, 'mapForm', $q );
- my $form_action = Cobrand::url( $cobrand, '/reports/new', $q );
+ my $form_action = Cobrand::url( $cobrand, '/report/new', $q );
my $encoding = '';
$encoding = ' enctype="multipart/form-data"' if $type == 2;
my $pc = $q->param('pc') || '';