diff --git a/app/presenters/publication_presenter.rb b/app/presenters/publication_presenter.rb index 2bbb092af..7163c134d 100644 --- a/app/presenters/publication_presenter.rb +++ b/app/presenters/publication_presenter.rb @@ -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