X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0eb72b526bf8bbb011551ecf019f604e17a534f1..5512f001241c17152087ed5b5a28f94a9c629541:/apps/workbench/app/views/trash_items/_untrash_item.html.erb
diff --git a/apps/workbench/app/views/trash_items/_untrash_item.html.erb b/apps/workbench/app/views/trash_items/_untrash_item.html.erb
index 901d396fcb..50780d9497 100644
--- a/apps/workbench/app/views/trash_items/_untrash_item.html.erb
+++ b/apps/workbench/app/views/trash_items/_untrash_item.html.erb
@@ -3,9 +3,7 @@
SPDX-License-Identifier: AGPL-3.0 %>
<% if object.editable? %>
- <% msg = "Untrash '" + if !object.name.blank? then object.name else object.uuid end + "'?" %>
- <%= link_to({action: 'untrash_items', selection: [object.uuid]}, remote: true, method: :post,
- title: "Untrash", style: 'cursor: pointer;') do %>
-
- <% end %>
+ <%= link_to(url_for(object), {title: "Untrash", style: 'cursor: pointer;'}) do %>
+
+ <% end %>
<% end %>