diff --git a/app/views/site/_id.html.erb b/app/views/site/_id.html.erb
index 7ddee6218..a6f42e43c 100644
--- a/app/views/site/_id.html.erb
+++ b/app/views/site/_id.html.erb
@@ -31,7 +31,7 @@
}
<% if params[:gpx] -%>
- params.gpx = '<%= trace_data_url(params[:gpx]) %>';
+ params.gpx = '<%= trace_data_url(params[:gpx], :format => :xml) %>';
<% else -%>
if (hashParams.gpx) {
params.gpx = hashParams.gpx;