diff options
author | Matthew Somerville <matthew@mysociety.org> | 2019-08-14 17:54:02 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-16 14:25:12 +0100 |
commit | 5fa588c7be0e3cf62a3f90924d68f8db803a6fb2 (patch) | |
tree | 8d7ff46244fc871a374dcf987c1f25ea9d36c220 /web/js | |
parent | eda9651e9059f0ce9851200b20077778ac6a7082 (diff) |
Maintain filter_category/group if locate me used.
Also update lat/lon parameters to match JS.
Diffstat (limited to 'web/js')
-rw-r--r-- | web/js/geolocation.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/web/js/geolocation.js b/web/js/geolocation.js index fbef4d7ea..63599d4c1 100644 --- a/web/js/geolocation.js +++ b/web/js/geolocation.js @@ -34,7 +34,7 @@ fixmystreet.geolocate = function(element, success_callback) { fixmystreet.geolocate(link, function(pos) { var latitude = pos.coords.latitude.toFixed(6); var longitude = pos.coords.longitude.toFixed(6); - var coords = 'latitude=' + latitude + ';longitude=' + longitude; + var coords = 'lat=' + latitude + '&lon=' + longitude; location.href = link.href + (link.href.indexOf('?') > -1 ? ';' : '?') + coords; }); } else { |