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

Change route definition for the notifications menu and the center itself so that the center path remains unchanged in comparision to before. Otherwise, we'd have to replace all occurences of the path

Henriette Darge7e1b88322031
diff --git a/app/menus/notifications/menu.rb b/app/menus/notifications/menu.rb
index 5fd9d1da677..ab260db5035 100644
--- a/app/menus/notifications/menu.rb
+++ b/app/menus/notifications/menu.rb
@@ -105,7 +105,7 @@ module Notifications
end
def query_path(query_params)
- notifications_path(query_params)
+ notifications_center_path(query_params)
end
def icon_map
diff --git a/config/routes.rb b/config/routes.rb
index 6e90bbb9517..2951746af26 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -699,10 +699,10 @@ Rails.application.routes.draw do
root to: "account#login"
- resource :notifications do
- collection do
- resource :menu, module: :notifications, only: %i[show], as: :notifications_menu
- end
+ namespace :notifications do
+ resource :menu, only: %i[show]
+ end
+ scope :notifications do
get "(/*state)", to: "angular#notifications_layout", as: :notifications_center
end