X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/e05adbb917adef34700858e9c0b46cc81cf59120..1eab367de5950af5396756dbf09cc9bd3edc3b8f:/app/views/site/_id.html.erb diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb index f88942669..db611f428 100644 --- a/app/views/site/_id.html.erb +++ b/app/views/site/_id.html.erb @@ -26,9 +26,13 @@ params.background = hashParams.background; } +<% if params[:gpx] -%> + params.gpx = '<%= trace_data_url(params[:gpx]) %>'; +<% else -%> if (hashParams.gpx) { params.gpx = hashParams.gpx; } +<% end -%> $('#id-embed').attr('src', '<%= id_url :locale => params[:locale] %>#' + querystring.stringify(params));