Skip to content

Commit

Permalink
Fix csv preview url
Browse files Browse the repository at this point in the history
  • Loading branch information
KludgeKML committed Apr 18, 2024
1 parent 5ed16ed commit f8955e3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/presenters/publication_presenter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ def documents
docs.each do |doc|
doc["type"] = "html" unless doc["content_type"]
doc["type"] = "external" if doc["attachment_type"] == "external"
doc["preview_url"] = "#{doc['url']}/preview"
doc["alternative_format_contact_email"] = nil if doc["accessible"] == true
end
end
Expand Down

0 comments on commit f8955e3

Please sign in to comment.