diff options
author | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-17 21:08:51 +0100 |
---|---|---|
committer | Matthew Somerville <matthew-github@dracos.co.uk> | 2017-08-18 09:13:25 +0100 |
commit | f1859bc10aaa153568ea866142c8535cbf769b87 (patch) | |
tree | e7021148ec8319236430c24aeb6bfdd4ffe2cccc /perllib/FixMyStreet/App/Controller | |
parent | 3ae492fdba798fb3e3bbeddc8cc7aaabc5210db5 (diff) |
Make sure /around permalink/redirect have js param
The change in 17e38922 would not deal with the URL construted by the
map permalink code, or the redirect after inspection.
Diffstat (limited to 'perllib/FixMyStreet/App/Controller')
-rw-r--r-- | perllib/FixMyStreet/App/Controller/Report.pm | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/perllib/FixMyStreet/App/Controller/Report.pm b/perllib/FixMyStreet/App/Controller/Report.pm index 48cf53eb3..a410c2d91 100644 --- a/perllib/FixMyStreet/App/Controller/Report.pm +++ b/perllib/FixMyStreet/App/Controller/Report.pm @@ -460,6 +460,7 @@ sub inspect : Private { lon => $problem->longitude, }; $params->{filter_category} = $categories if $categories; + $params->{js} = 1 if $c->get_param('js'); $redirect_uri = $c->uri_for( "/around", $params ); } |