From 87d7923f0de0cffcea330ac65041651df0e07644 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javi=20Mart=C3=ADn?= Date: Sun, 8 Oct 2023 22:10:40 +0200 Subject: [PATCH] Open mailer links in the same window We do it most of the time, so I'm not sure why we weren't doing it in these cases. --- app/helpers/mailer_helper.rb | 1 - app/views/mailer/direct_message_for_receiver.html.erb | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/app/helpers/mailer_helper.rb b/app/helpers/mailer_helper.rb index 56e3b2dd0..e49feb05e 100644 --- a/app/helpers/mailer_helper.rb +++ b/app/helpers/mailer_helper.rb @@ -11,7 +11,6 @@ module MailerHelper link_to( commentable.title, valuation_comments_url(@email.commentable), - target: :blank, style: "color: #2895F1; text-decoration:none;" ) end diff --git a/app/views/mailer/direct_message_for_receiver.html.erb b/app/views/mailer/direct_message_for_receiver.html.erb index 5a8799607..fa26d0727 100644 --- a/app/views/mailer/direct_message_for_receiver.html.erb +++ b/app/views/mailer/direct_message_for_receiver.html.erb @@ -11,7 +11,7 @@ - <%= link_to user_url(@direct_message.sender), style: css_for_mailer_button, target: "_blank" do %> + <%= link_to user_url(@direct_message.sender), style: css_for_mailer_button do %> <%= t("mailers.direct_message_for_receiver.reply", sender: @direct_message.sender.name) %> <% end %>