aboutsummaryrefslogtreecommitdiffstats
path: root/web/js
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-08-14 17:54:02 +0100
committerDave Arter <davea@mysociety.org>2019-08-16 14:25:12 +0100
commit5fa588c7be0e3cf62a3f90924d68f8db803a6fb2 (patch)
tree8d7ff46244fc871a374dcf987c1f25ea9d36c220 /web/js
parenteda9651e9059f0ce9851200b20077778ac6a7082 (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.js2
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 {