Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Resolve urls in mail helpers

Oliver Günther0558a77bdc47
diff --git a/app/helpers/mail_notification_helper.rb b/app/helpers/mail_notification_helper.rb
index 4861127d90f..cf5aeb3ebed 100644
--- a/app/helpers/mail_notification_helper.rb
+++ b/app/helpers/mail_notification_helper.rb
@@ -35,10 +35,6 @@ module MailNotificationHelper
.uniq
end
- def notifications_path(id)
- details_notifications_path(id)
- end
-
def type_color(type, default_fallback)
color_id = selected_color(type)
if color_id
diff --git a/app/mailers/sharing_mailer.rb b/app/mailers/sharing_mailer.rb
index db6e63fa297..9a1a54b25e5 100644
--- a/app/mailers/sharing_mailer.rb
+++ b/app/mailers/sharing_mailer.rb
@@ -15,7 +15,7 @@ class SharingMailer < ApplicationMailer
@role_rights = derive_role_rights(role)
@allowed_work_package_actions = derive_allowed_work_package_actions(role)
@url = optionally_activated_url(work_package_url(@work_package.id), @invitation_token)
- @notification_url = optionally_activated_url(notifications_path(@work_package.id), @invitation_token)
+ @notification_url = optionally_activated_url(details_notifications_path(@work_package.id), @invitation_token)
set_open_project_headers(@work_package)
message_id(membership, sharer)