Open new tab/window for "report a problem" link

This avoids closing whatever site the user was looking at when they
spotted he problem, and avoid problems when the embedded map is part
of an iframe as the problem report page denies embedding.
This commit is contained in:
Florian Schäfer 2016-01-15 21:56:41 +01:00 committed by Tom Hughes
parent ca5de5b4e0
commit 151a48d7f3

View 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?lat={x}&lon={y}&zoom={z}">Report a problem</a>'
prefix: '<a href="http://www.openstreetmap.org/fixthemap?lat={x}&lon={y}&zoom={z}" target="_blank">Report a problem</a>'
},
onAdd: function (map) {