From d5c6d1ffab34ae43a5155c2288fd2c84d742f858 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Fri, 13 Oct 2023 19:32:27 +0200 Subject: [PATCH] Open links to images in the same tab Just like we did for documents in commit cdc5e05d4. --- app/views/polls/_gallery.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/polls/_gallery.html.erb b/app/views/polls/_gallery.html.erb index 43ac86cf6..e61830653 100644 --- a/app/views/polls/_gallery.html.erb +++ b/app/views/polls/_gallery.html.erb @@ -18,7 +18,7 @@ <% answer.images.reverse.each_with_index do |image, index| %>
  • - <%= link_to image.attachment, target: "_blank" do %> + <%= link_to image.attachment do %> <%= image_tag image.attachment, class: "orbit-image", alt: image.title.unicode_normalize %>