diff --git a/app/mailers/activity_mailer.rb b/app/mailers/activity_mailer.rb index 96fe8415cf1..ae15d8cb660 100644 --- a/app/mailers/activity_mailer.rb +++ b/app/mailers/activity_mailer.rb @@ -45,7 +45,7 @@ def came_comment(args = {}) @user = @receiver link = "/#{@comment.commentable_type.downcase.pluralize}/#{@comment.commentable.id}" - @link_url = notification_redirector_path( + @link_url = notification_redirector_url( link: link, kind: Notification.kinds[:came_comment] ) @@ -298,7 +298,7 @@ def first_report(args = {}) @user = @receiver @link_url = notification_redirector_url( - link: report_url(@report), + link: "/reports/#{@report.id}", kind: Notification.kinds[:first_report] ) diff --git a/app/views/activity_mailer/first_report.html.slim b/app/views/activity_mailer/first_report.html.slim index 0afe381fda5..4bf96249a47 100644 --- a/app/views/activity_mailer/first_report.html.slim +++ b/app/views/activity_mailer/first_report.html.slim @@ -1,6 +1,6 @@ = render '/notification_mailer/notification_mailer_template', title: "#{@report.user.login_name}さんのはじめての日報です!", - link_url: "/reports/#{@report.id}", link_text: 'この日報へ' do + link_url: @link_url, link_text: 'この日報へ' do p #{@report.user.login_name}さんのはじめての日報です。歓迎のコメントを投稿しよう!! div(style='border-top: solid 1px #ccc; height: 0;') = md2html(@report.description)