From a0419030e436608a9d6553a6c3cf31f28d62842a Mon Sep 17 00:00:00 2001 From: martintomas Date: Wed, 9 Oct 2024 21:58:35 +0200 Subject: [PATCH] feat: Adding format to Download file link at Publication detail --- app/views/tpi/publications/show.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/tpi/publications/show.html.erb b/app/views/tpi/publications/show.html.erb index 92fbb2461..c3967a924 100644 --- a/app/views/tpi/publications/show.html.erb +++ b/app/views/tpi/publications/show.html.erb @@ -25,7 +25,7 @@ <%= @publication.summary&.html_safe %> - <%= link_to 'Download file', tpi_publication_download_file_path(slug: @publication.slug), target: '_blank', class: 'button is-primary' %> + <%= link_to 'Download file', tpi_publication_download_file_path(slug: @publication.slug, format: format_of(@publication.file)), target: '_blank', class: 'button is-primary' %>