X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/ba639159dd372c89bfd905299b64a37d1b3f5e74..5c74a6517cbc5aa4aa958abd0737da8892f58a45:/app/views/user/_contact.html.erb?ds=sidebyside diff --git a/app/views/user/_contact.html.erb b/app/views/user/_contact.html.erb index d720353ee..9bac0dc2d 100644 --- a/app/views/user/_contact.html.erb +++ b/app/views/user/_contact.html.erb @@ -33,9 +33,9 @@ <%= link_to t('user.view.send message'), :controller => 'message', :action => 'new', :display_name => contact.display_name %> | <% if @user.is_friends_with?(contact) %> - <%= link_to t('user.view.remove as friend'), :controller => 'user', :action => 'remove_friend', :display_name => contact.display_name, :referer => request.request_uri %> + <%= link_to t('user.view.remove as friend'), :controller => 'user', :action => 'remove_friend', :display_name => contact.display_name, :referer => request.fullpath %> <% else %> - <%= link_to t('user.view.add as friend'), :controller => 'user', :action => 'make_friend', :display_name => contact.display_name, :referer => request.request_uri %> + <%= link_to t('user.view.add as friend'), :controller => 'user', :action => 'make_friend', :display_name => contact.display_name, :referer => request.fullpath %> <% end %>