diff --git a/app/jobs/reports/docx_job.rb b/app/jobs/reports/docx_job.rb index e520e03bb..fcf0612f1 100644 --- a/app/jobs/reports/docx_job.rb +++ b/app/jobs/reports/docx_job.rb @@ -22,7 +22,8 @@ module Reports docx.save report.docx_file.attach(io: file, filename: 'report.docx') report.update!(docx_file_processing: false) - report_path = Rails.application.routes.url_helpers.reports_path + report_path = Rails.application.routes.url_helpers + .reports_path(team: report.team.id, preview_report_id: report.id, preview_type: :docx) notification = Notification.create( type_of: :deliver, title: I18n.t('projects.reports.index.generation.completed_docx_notification_title'), diff --git a/app/jobs/reports/pdf_job.rb b/app/jobs/reports/pdf_job.rb index bb3270bcf..aebdb327d 100644 --- a/app/jobs/reports/pdf_job.rb +++ b/app/jobs/reports/pdf_job.rb @@ -53,7 +53,8 @@ module Reports report.pdf_file.attach(io: file, filename: 'report.pdf') report.update!(pdf_file_processing: false) - report_path = Rails.application.routes.url_helpers.reports_path + report_path = Rails.application.routes.url_helpers + .reports_path(team: report.team.id, preview_report_id: report.id, preview_type: :pdf) notification = Notification.create( type_of: :deliver, title: I18n.t('projects.reports.index.generation.completed_pdf_notification_title'),