]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/user_blocks/blocks_by.html.erb
Use user_path links. Fixes #1785
[rails.git] / app / views / user_blocks / blocks_by.html.erb
index d2f888e7d185f8a30ef13c06316dad0c1b8b8a73..02f6f17cede52f2220148895a419c5e4f20b0d16 100644 (file)
@@ -1,6 +1,6 @@
 <% @title = t('user_block.blocks_by.title', :name => h(@this_user.display_name)) %>
 <% content_for :heading do %>
-  <h1><%= raw(t('user_block.blocks_by.heading', :name => link_to(h(@this_user.display_name), {:controller => 'user', :action => 'view', :display_name => @this_user.display_name}))) %></h1>
+  <h1><%= raw(t('user_block.blocks_by.heading', :name => link_to(h(@this_user.display_name), user_path(@this_user)))) %></h1>
 <% end %>
 
 <% unless @user_blocks.empty? %>