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

Redirect with query params in overview module

Oliver Günther3eb3851153fd
diff --git a/frontend/src/app/features/overview/openproject-overview.module.ts b/frontend/src/app/features/overview/openproject-overview.module.ts
index a886eccdd83..64843333d69 100644
--- a/frontend/src/app/features/overview/openproject-overview.module.ts
+++ b/frontend/src/app/features/overview/openproject-overview.module.ts
@@ -53,8 +53,8 @@ export function uiRouterOverviewConfiguration(uiRouter:UIRouter):void {
// cf., https://community.openproject.com/wp/29754
uiRouter.urlService.rules
.when(
- new RegExp('^/projects(?!/new$)/([^/\\?]+)(\\?.*)?$'),
- (match:string[]) => `/projects/${match[1]}/${match[2] || ''}`,
+ new RegExp('^/projects(?!/new$)/([^/?]+)$'),
+ (match:string[]) => `/projects/${match[1]}/${window.location.search}`,
);
}