X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5384ee236cfbb1a33e018f9b85c63d765961a479..d423ae91370b08dcad6ccba041c2e234659531ec:/app/assets/javascripts/index/notes.js.erb?ds=sidebyside diff --git a/app/assets/javascripts/index/notes.js.erb b/app/assets/javascripts/index/notes.js.erb index 11363fca8..4e45cbe05 100644 --- a/app/assets/javascripts/index/notes.js.erb +++ b/app/assets/javascripts/index/notes.js.erb @@ -34,7 +34,9 @@ function initializeNotes(map) { }); noteLayer.on('click', function(e) { - OSM.route('/browse/note/' + e.layer.id); + if (e.layer.id) { + OSM.router.route('/note/' + e.layer.id); + } }); function updateMarker(marker, feature) {