]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notes/_note.json.jsonify
Use only_path instead of setting an explicit host
[rails.git] / app / views / notes / _note.json.jsonify
index 74ff5ccec621da2a1d38ba0ba129ce30b4c7f43a..5e3ac518e7840990e78654089f06f6433952441f 100644 (file)
@@ -26,7 +26,7 @@ json.properties do
     if comment.author
       json.uid comment.author.id
       json.user comment.author.display_name
-      json.user_url user_url(:display_name => comment.author.display_name, :host => SERVER_URL)
+      json.user_url user_url(:display_name => comment.author.display_name, :only_path => false)
     end
 
     json.action comment.event