From db2b09d107a13d385effd6fc9d717177c95613ea Mon Sep 17 00:00:00 2001 From: alecbarber Date: Thu, 15 Aug 2024 15:59:19 +0100 Subject: [PATCH] make google drive link open in new tab consistent with gmail links --- app/views/searches/results/_google_drive_file.html.erb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/views/searches/results/_google_drive_file.html.erb b/app/views/searches/results/_google_drive_file.html.erb index 797487d..d1c88d8 100644 --- a/app/views/searches/results/_google_drive_file.html.erb +++ b/app/views/searches/results/_google_drive_file.html.erb @@ -1,4 +1,6 @@ -<%= link_to document.documentable.alternate_link, class: 'flex py-2 items-center gap-4 rounded-md duration-200 group relative z-10' do %> +<%= link_to document.documentable.alternate_link, + target: '_blank', + class: 'flex py-2 items-center gap-4 rounded-md duration-200 group relative z-10' do %>
<%= image_tag 'search/google_docs.png' %>