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

Fix matching of query_id param with regex

Oliver Güntherd1df28e41d7b
diff --git a/frontend/src/app/core/routing/openproject.routes.ts b/frontend/src/app/core/routing/openproject.routes.ts
index a0af681e804..bc8d3608ceb 100644
--- a/frontend/src/app/core/routing/openproject.routes.ts
+++ b/frontend/src/app/core/routing/openproject.routes.ts
@@ -212,6 +212,7 @@ export function uiRouterConfiguration(uiRouter:UIRouter, injector:Injector, modu
uiRouter.urlService.config.type(
'opQueryId',
{
+ pattern: new RegExp(/(?:new|[0-9]+)/),
encode: (id:string|null) => id || 'new',
decode: (id:string) => (id === 'new' ? null : id),
raw: true,