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/Report/New.pm (renamed from perllib/FixMyStreet/App/Controller/Reports/New.pm)8
-rw-r--r--perllib/FixMyStreet/App/Controller/Tokens.pm2
2 files changed, 5 insertions, 5 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 );
}