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

Rename admin work_package route to avoid interference with the angular work_package router

Henriette Darge78fe08ba0bd2
diff --git a/config/routes.rb b/config/routes.rb
index 06c8a660b8b..e6594414f8f 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -453,7 +453,9 @@ Rails.application.routes.draw do
resource :aggregation, controller: "/admin/settings/aggregation_settings", only: %i[show update]
resource :mail_notifications, controller: "/admin/settings/mail_notifications_settings", only: %i[show update]
resource :api, controller: "/admin/settings/api_settings", only: %i[show update]
- resource :work_packages, controller: "/admin/settings/work_packages_settings", only: %i[show update]
+ # It is important to have this named something else than "work_packages".
+ # Otherwise the angular ui-router will also recognize that as a WorkPackage page and apply according classes.
+ resource :work_package_tracking, controller: "/admin/settings/work_packages_settings", only: %i[show update]
resource :projects, controller: "/admin/settings/projects_settings", only: %i[show update]
resource :new_project, controller: "/admin/settings/new_project_settings", only: %i[show update]
resources :project_custom_fields, controller: "/admin/settings/project_custom_fields" do