From 5fa588c7be0e3cf62a3f90924d68f8db803a6fb2 Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Wed, 14 Aug 2019 17:54:02 +0100 Subject: Maintain filter_category/group if locate me used. Also update lat/lon parameters to match JS. --- web/js/geolocation.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'web/js/geolocation.js') 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 { -- cgit v1.2.3