diff --git a/app/views/my_projects_overviews/_block.html.erb b/app/views/my_projects_overviews/_block.html.erb
index 284b1d6568..e656de2fee 100644
--- a/app/views/my_projects_overviews/_block.html.erb
+++ b/app/views/my_projects_overviews/_block.html.erb
@@ -25,13 +25,12 @@ See doc/COPYRIGHT.md for more details.
<% content_for block_name_id do %>
<% if User.current.allowed_to?(:remove_block, nil, global: true) %>
- <%= link_to '', {
- remote: true,
- confirm: l(:label_confirm_delete),
- url: { action: "remove_block", block: block_name },
- html: { class: "icon icon-close", title: l(:button_delete) }
- }
- %>
+ <%= link_to '', { action: "remove_block", block: block_name },
+ remote: true,
+ method: :post,
+ confirm: l(:label_confirm_delete),
+ class: "icon icon-close",
+ title: l(:button_delete) %>
<% end %>
<% end %>