Skip to content

Commit

Permalink
custom site routing fallback must use id param (DLC-771)
Browse files Browse the repository at this point in the history
  • Loading branch information
barmintor committed Oct 22, 2024
1 parent 452e75f commit 2dc8201
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/concerns/dcv/sites/lookup_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def doc_url_in_site_context(site, solr_doc)
if site&.search_type == Site::SEARCH_CUSTOM
helper = site.restricted ? "restricted_#{site.slug.sub(/^restricted\//,'')}_show_url" : "#{site.slug}_show_url"
helper.gsub!('/', '_')
send helper.to_sym, solr_doc
send helper.to_sym, id: solr_doc.id
elsif site&.search_type == Site::SEARCH_LOCAL
url_for(controller: 'sites/search', site_slug: site.slug, id: solr_doc.doi_identifier, action: :show)
else
Expand Down

0 comments on commit 2dc8201

Please sign in to comment.