Specify the username when generating a URL for a trace
This commit is contained in:
parent
a87540a5dd
commit
b255a333c5
1 changed files with 1 additions and 1 deletions
|
@ -68,7 +68,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 => 'trace', :action => 'view', :id => gpx_file.id))
|
||||
track << (XML::Node.new("url") << url_for(:controller => 'trace', :action => 'view', :display_name => gpx_file.user.display_name, :id => gpx_file.id))
|
||||
end
|
||||
else
|
||||
# use the anonymous track segment if the user hasn't allowed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue