<% value = collection_thumbnail(document, {}, counter: document_counter_with_offset(document_counter)) %>
- <%= link_to value, generate_work_url(document.to_h, request)%>
+ <%= link_to value, generate_work_url(document, request)%>
<%= render_document_partials document, blacklight_config.view_config(:gallery).partials, :document_counter => document_counter %>
diff --git a/app/views/catalog/_index_header_list_collection.html.erb b/app/views/catalog/_index_header_list_collection.html.erb
index 290358347..e0c78e0b2 100644
--- a/app/views/catalog/_index_header_list_collection.html.erb
+++ b/app/views/catalog/_index_header_list_collection.html.erb
@@ -2,7 +2,7 @@
<%# OVERRIDE begin %>
-
<%= link_to markdown(document.title_or_label), generate_work_url(document.to_h, request) %>
+ <%= link_to markdown(document.title_or_label), generate_work_url(document, request) %>
<%# OVERRIDE end %>
<%= Hyrax::CollectionPresenter.new(document, current_ability).collection_type_badge %>
diff --git a/app/views/catalog/_thumbnail_list_collection.html.erb b/app/views/catalog/_thumbnail_list_collection.html.erb
index 65b33703a..3812bb250 100644
--- a/app/views/catalog/_thumbnail_list_collection.html.erb
+++ b/app/views/catalog/_thumbnail_list_collection.html.erb
@@ -1,5 +1,5 @@
<%# Override Hyrax 3.4.1 to remove thumbnail link supression and use default collection thumbnail %>
<% value = collection_thumbnail(document, {}, counter: document_counter_with_offset(document_counter)) %>
- <%= link_to value, generate_work_url(document.to_h, request)%>
+ <%= link_to value, generate_work_url(document, request)%>
diff --git a/app/views/hyrax/homepage/_recent_document.html.erb b/app/views/hyrax/homepage/_recent_document.html.erb
index 1c606e227..fd5a749a2 100644
--- a/app/views/hyrax/homepage/_recent_document.html.erb
+++ b/app/views/hyrax/homepage/_recent_document.html.erb
@@ -5,7 +5,7 @@
<%= t('hyrax.homepage.recently_uploaded.document.title_label') %>
- <%= link_to generate_work_url(recent_document.to_h, request), data: { turbolinks: block_valkyrie_redirect? } do %>
+ <%= link_to generate_work_url(recent_document, request), data: { turbolinks: block_valkyrie_redirect? } do %>
<%= markdown("#{render_thumbnail_tag(recent_document, {width: 90}, {suppress_link: true})} #{recent_document.title_or_label}") %>
<% end %>
diff --git a/app/views/themes/institutional_repository/hyrax/homepage/_recent_document.html.erb b/app/views/themes/institutional_repository/hyrax/homepage/_recent_document.html.erb
index ff985d23f..ab2bb13d3 100644
--- a/app/views/themes/institutional_repository/hyrax/homepage/_recent_document.html.erb
+++ b/app/views/themes/institutional_repository/hyrax/homepage/_recent_document.html.erb
@@ -1,6 +1,6 @@
<%# OVERRIDE Hyrax v5.0.0rc2 template for client theming and shared search %>
<%= t('hyrax.homepage.recently_uploaded.document.title_label') %>
-<%= link_to generate_work_url(recent_document.to_h, request) do %>
+<%= link_to generate_work_url(recent_document, request) do %>
<%= render_thumbnail_tag recent_document, {class: 'img-fluid mx-auto d-block'}, {suppress_link: true} %>
diff --git a/app/views/themes/neutral_repository/hyrax/homepage/_recent_document.html.erb b/app/views/themes/neutral_repository/hyrax/homepage/_recent_document.html.erb
index a3a0660bf..1fcb6bbd1 100644
--- a/app/views/themes/neutral_repository/hyrax/homepage/_recent_document.html.erb
+++ b/app/views/themes/neutral_repository/hyrax/homepage/_recent_document.html.erb
@@ -1,5 +1,5 @@
<%= t('hyrax.homepage.recently_uploaded.document.title_label') %>
-<%= link_to(generate_work_url(recent_document.to_h, request)) do %>
+<%= link_to(generate_work_url(recent_document, request)) do %>
<%= render_thumbnail_tag recent_document, {class: 'img-fluid mx-auto d-block'}, {suppress_link: true} %>