From ee386f44aeebe7814f258b3ba4a756e903c89719 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 19 Feb 2015 15:47:37 +0000 Subject: Always show confirmation page for reports/updates. Rather than redirecting to the report if they're already logged in. Fixes #1003. --- perllib/FixMyStreet/App/Controller/Report/Update.pm | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'perllib/FixMyStreet/App/Controller/Report/Update.pm') diff --git a/perllib/FixMyStreet/App/Controller/Report/Update.pm b/perllib/FixMyStreet/App/Controller/Report/Update.pm index b97420238..f1a1aa821 100644 --- a/perllib/FixMyStreet/App/Controller/Report/Update.pm +++ b/perllib/FixMyStreet/App/Controller/Report/Update.pm @@ -376,11 +376,8 @@ sub redirect_or_confirm_creation : Private { if ( $update->confirmed ) { $c->forward( 'update_problem' ); $c->forward( 'signup_for_alerts' ); - - my $report_uri = $c->cobrand->base_url_for_report( $update->problem ) . $update->problem->url; - $c->flash->{comment_created} = 1; - $c->res->redirect($report_uri); - $c->detach; + $c->stash->{template} = 'tokens/confirm_update.html'; + return 1; } # otherwise create a confirm token and email it to them. -- cgit v1.2.3