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

Do not go back to create form on WPBack button

Henriette Dingerff93ad7a1885
diff --git a/frontend/src/app/modules/common/back-routing/back-routing.service.ts b/frontend/src/app/modules/common/back-routing/back-routing.service.ts
index f4261a308e8..b0f545f295c 100644
--- a/frontend/src/app/modules/common/back-routing/back-routing.service.ts
+++ b/frontend/src/app/modules/common/back-routing/back-routing.service.ts
@@ -46,7 +46,9 @@ export class BackRoutingService {
}
public goBack(preferListOverSplit:boolean = false) {
- if (!this.backRoute) {
+ // Default: back to list
+ // When coming from a deep link or a create form
+ if (!this.backRoute || this.backRoute.name.includes('new')) {
this.$state.go('work-packages.list', this.$state.params);
} else {
if (this.keepTab.isDetailsState(this.backRoute.parent)) {