X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2fa81de6a95e7f82ac67cda2b6b6cecbfabf694a..f5cbc9c4fec78f4b8a1d01859b08d82ecb66a1b0:/app/views/site/_id.html.erb?ds=inline diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index 5452cc4fe..e2f783731 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -13,13 +13,13 @@ <% end -%> var hash; - if (coord.object && coord.object.type !== 'relation') { + if (coord.object) { hash = '#id=' + coord.object.type[0] + coord.object.id; } else { hash = '#map=' + (coord.zoom || 17) + '/' + coord.lon + '/' + coord.lat } - $('#id-embed').attr('src', 'id_iframe' + hash); + $('#id-embed').attr('src', '<%= id_url :locale => params[:locale] %>' + hash); <% else %>