aboutsummaryrefslogtreecommitdiffstats
path: root/perllib/FixMyStreet/App/Controller/Open311.pm
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2011-09-20 16:13:15 +0100
committerStruan Donald <struan@exo.org.uk>2011-09-20 16:13:15 +0100
commit6128a2790b682170d2cac4b4674b4ac3ac2dc517 (patch)
tree63b493b3d442db2078c7fbf1b96afc7d275ef1ba /perllib/FixMyStreet/App/Controller/Open311.pm
parentdd82abb2c31d77fbd54799f08322ee074f46a160 (diff)
parent77f31e8c96c727ea5ab9cf217cfd924074e8f3ed (diff)
Merge remote branch 'origin/master' into rss-addresses
Diffstat (limited to 'perllib/FixMyStreet/App/Controller/Open311.pm')
-rw-r--r--perllib/FixMyStreet/App/Controller/Open311.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Open311.pm b/perllib/FixMyStreet/App/Controller/Open311.pm
index 46d7801f6..fe1494b95 100644
--- a/perllib/FixMyStreet/App/Controller/Open311.pm
+++ b/perllib/FixMyStreet/App/Controller/Open311.pm
@@ -55,7 +55,7 @@ sub index : Path : Args(0) {
sub old_uri : Regex('^open311\.cgi') : Args(0) {
my ( $self, $c ) = @_;
( my $new = $c->req->path ) =~ s/open311.cgi/open311/;
- $c->res->redirect( "/$new", 301);
+ $c->res->redirect( $c->uri_for("/$new", $c->req->query_params), 301);
}
=head2 discovery