Use correct URL for problem report control
authorTom Hughes <tom@compton.nu>
Fri, 17 Jul 2015 21:36:57 +0000 (22:36 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 17 Jul 2015 21:36:57 +0000 (22:36 +0100)
app/assets/javascripts/embed.js.erb

index d5231fe..ca55944 100644 (file)
@@ -51,7 +51,7 @@ window.onload = function () {
 L.Control.OSMReportAProblem = L.Control.Attribution.extend({
   options: {
     position: 'bottomright',
-    prefix: '<a href="http://www.openstreetmap.org/fixthemap#{z}/{x}/{y}">Report a problem</a>'
+    prefix: '<a href="http://www.openstreetmap.org/fixthemap?lat={x}&lon={y}&zoom={z}">Report a problem</a>'
   },
 
   onAdd: function (map) {