Skip to content

Commit

Permalink
For #152 - fixed url encoding for location urls sending
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalidze committed May 19, 2015
1 parent 9e21a16 commit 3be0edd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/webapp/m/js/traccar-mobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ function drawDeviceDetails(deviceId, position) {
i18n.speed + ': ' + formatSpeed(p.speed) + '\n' +
i18n.course + ': ' + formatDouble(p.course, 2) + '\n';
if (p.address != undefined && p.address != null) {
text += i18n.address + ': ' + p.address + '\n';
text += i18n.address + ': ' + encodeURIComponent(p.address) + '\n';
}
var other = parseOther(p);
if (other != undefined && other != null) {
Expand All @@ -531,7 +531,7 @@ function drawDeviceDetails(deviceId, position) {
};
var drawURL = function() {
var p = appState.latestPositions[deviceId];
return 'http://www.openstreetmap.org/?mlat=' + p.latitude + '&mlon=' + p.longitude;
return 'http://www.openstreetmap.org/?mlat=' + p.latitude + '%26mlon=' + p.longitude;
};

// register 'send by email' function
Expand Down

0 comments on commit 3be0edd

Please sign in to comment.