aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Report/New.pm
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-07-18 13:13:27 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-07-18 13:13:27 +0100
commit48a56597c0bccf34417a1f4b184d623602b531cb (patch)
tree4da85eef811aa9d8887512cdd654554b76dae4b1 /perllib/FixMyStreet/App/Controller/Report/New.pm
parent9fde45a9355c69040a519114f70f6d54184bf15c (diff)
Improve on 73da842, few more places where cobrand specific report URL is needed.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Report/New.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Report/New.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report/New.pm b/perllib/FixMyStreet/App/Controller/Report/New.pm
index 5bf184ae6..87bdc1fd0 100644
--- a/perllib/FixMyStreet/App/Controller/Report/New.pm
+++ b/perllib/FixMyStreet/App/Controller/Report/New.pm
@@ -1063,7 +1063,7 @@ sub redirect_or_confirm_creation : Private {
if ( $report->confirmed ) {
# Subscribe problem reporter to email updates
$c->forward( 'create_reporter_alert' );
- my $report_uri = $c->uri_for( '/report', $report->id );
+ my $report_uri = $c->cobrand->base_url_for_report( $report ) . $report->url;
$c->log->info($report->user->id . ' was logged in, redirecting to /report/' . $report->id);
$c->res->redirect($report_uri);
$c->detach;