diff options
author | Dave Arter <davea@mysociety.org> | 2019-12-17 14:41:52 +0000 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2020-01-08 13:58:13 +0000 |
commit | d6bd51fed944edc827eb500ebc4338c74b01be0e (patch) | |
tree | 88ce7e211c4b709da025ae1e92755146fbd036ed | |
parent | 88ad6b00dfc050db1ba5ae9bf14b900382cd24a7 (diff) |
[Oxfordshire] Pass category & geolocation params to /around from front page
-rw-r--r-- | templates/web/oxfordshire/around/postcode_form.html | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/web/oxfordshire/around/postcode_form.html b/templates/web/oxfordshire/around/postcode_form.html index ea15809d8..5d061291c 100644 --- a/templates/web/oxfordshire/around/postcode_form.html +++ b/templates/web/oxfordshire/around/postcode_form.html @@ -25,7 +25,13 @@ <input type="hidden" name="filter_category" value="[% c.user.categories.join(",") | html %]"> [% END %] </form> - <a href="[% c.uri_for('/around') %]" id="geolocate_link">[% loc('Or use my location') %]</a> + [%~ SET link_params = { + geolocate = 1 + }; + 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 use my location') %]</a> [% UNLESS possible_location_matches %] [% INCLUDE 'around/_postcode_form_post.html' %] |