diff options
author | Dave Arter <davea@mysociety.org> | 2019-08-16 14:26:17 +0100 |
---|---|---|
committer | Dave Arter <davea@mysociety.org> | 2019-08-16 14:26:17 +0100 |
commit | e13c2a88e875b549624df0d1ad46bb0e2e121653 (patch) | |
tree | 5122704fe370499d35643b96f8bc9440d70cb152 /web/js/geolocation.js | |
parent | 52dfeb4d3c0883d05d01662597f1f8f5d74ba15b (diff) | |
parent | 3137ae8d24dd4ab922ef83b5733332b54bac1903 (diff) |
Merge branch 'westminster-reviewed'
Diffstat (limited to 'web/js/geolocation.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 { |