Skip to content

Commit

Permalink
Merge pull request #3161 from alphagov/csv-preview-fix
Browse files Browse the repository at this point in the history
Fix csv preview url
  • Loading branch information
KludgeKML authored Apr 18, 2024
2 parents 5ed16ed + f8955e3 commit d4f8bc5
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 d4f8bc5

Please sign in to comment.