Skip to content

Commit

Permalink
[map.js] Better directions link for cross language compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
FrostTheFox committed Feb 8, 2017
1 parent b53e47e commit 6877c41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/map.js
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ function getTypeSpan(type) {
}

function openMapDirections(lat, lng) { // eslint-disable-line no-unused-vars
var url = 'https://www.google.com/maps/dir/Current+Location/' + lat + ',' + lng
var url = 'https://www.google.com/maps/?daddr=' + lat + ',' + lng
window.open(url, '_blank')
}

Expand Down

0 comments on commit 6877c41

Please sign in to comment.