diff options
author | Dave Arter <davea@mysociety.org> | 2019-08-19 13:12:09 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-19 13:12:09 +0100 |
commit | 3e9b73cdf9e93cc2e9c174a71dcdcab4eed598e1 (patch) | |
tree | 9f6ee4f3a68b17c7b175e47db9ac2a3147f963ef | |
parent | 19943aefc49a1774d1f0e0f739c9dee80a0b1805 (diff) |
Fix filter_group/filter_category links for categories with spaces
These were being double-escaped, but c.uri_for returns a string that’s already URI-safe
-rw-r--r-- | templates/web/base/around/postcode_form.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/web/base/around/postcode_form.html b/templates/web/base/around/postcode_form.html index 0ffff711e..0921fa496 100644 --- a/templates/web/base/around/postcode_form.html +++ b/templates/web/base/around/postcode_form.html @@ -28,8 +28,8 @@ [% END %] </form> [%~ SET link_params = {}; - IF c.get_param('filter_category'); link_params.filter_category = c.get_param('filter_category') | uri; END; - IF c.get_param('filter_group'); link_params.filter_group = c.get_param('filter_group') | uri; END; + IF c.get_param('filter_category'); link_params.filter_category = c.get_param('filter_category'); END; + IF c.get_param('filter_group'); link_params.filter_group = c.get_param('filter_group'); END; %] <a href="[% c.uri_for('/around', link_params) | html %]" id="geolocate_link">… [% loc('or locate me automatically') %]</a> |