]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api_controller.rb
Localisation updates from https://translatewiki.net.
[rails.git] / app / controllers / api_controller.rb
index 021ada0cdcaae4a77ad5745e5baeba5627ab16fb..81b8bca5323f3cbe33bb1a2c990679b8a9ca5cce 100644 (file)
@@ -67,7 +67,7 @@ class ApiController < ApplicationController
           if gpx_file.identifiable?
             track << (XML::Node.new("name") << gpx_file.name)
             track << (XML::Node.new("desc") << gpx_file.description)
-            track << (XML::Node.new("url") << url_for(:controller => "traces", :action => "view", :display_name => gpx_file.user.display_name, :id => gpx_file.id))
+            track << (XML::Node.new("url") << url_for(:controller => "traces", :action => "show", :display_name => gpx_file.user.display_name, :id => gpx_file.id))
           end
         else
           # use the anonymous track segment if the user hasn't allowed