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

use plural for route

ulferts9d2b1e70d731
diff --git a/config/routes.rb b/config/routes.rb
index 514a481ec14..04c6f62078b 100644
--- a/config/routes.rb
+++ b/config/routes.rb
@@ -458,7 +458,7 @@ OpenProject::Application.routes.draw do
get 'details/*state' => 'work_packages#index', on: :collection, as: :details
# Rails managed sharing route
- get '/share' => 'work_packages/shares#index', on: :member
+ get '/shares' => 'work_packages/shares#index', on: :member
# states managed by client-side (angular) routing on work_package#show
get '/' => 'work_packages#index', on: :collection, as: 'index'
diff --git a/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.ts b/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.ts
index 88cfdf14860..3d303c13969 100644
--- a/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.ts
+++ b/frontend/src/app/features/work-packages/components/wp-share-modal/wp-share.modal.ts
@@ -30,7 +30,7 @@ export class WorkPackageShareModalComponent extends OpModalComponent implements
this.workPackage = this.locals.workPackage as WorkPackageResource;
// TODO: put into path helper
- this.frameSrc = `/work_packages/${this.workPackage.id as string}/share`;
+ this.frameSrc = `/work_packages/${this.workPackage.id as string}/shares`;
}
ngOnInit() {