From 4cef17e99995846cfe6f68bc1ed6dd68cb0109be Mon Sep 17 00:00:00 2001 From: Aldo Mihasi Date: Fri, 22 Sep 2023 13:15:32 +0300 Subject: [PATCH] fix routing in save-and-add-new button in dataset editor --- .../app/ui/dataset/dataset-wizard/dataset-wizard.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts index d82a349c3..3199b526c 100644 --- a/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts +++ b/dmp-frontend/src/app/ui/dataset/dataset-wizard/dataset-wizard.component.ts @@ -945,7 +945,7 @@ export class DatasetWizardComponent extends CheckDeactivateBaseComponent impleme if (data) { if (saveType === this.saveAnd.addNew) { this.router.navigate(['/reload']).then(() => { - this.router.navigate(['/datasets', 'new', this.formGroup.get('dmp').value.id]); + this.router.navigate(['/datasets', 'new', this.formGroup.get('dmp').value.id, this.dmpSectionIndex]); }) } else if (saveType === this.saveAnd.close) { this.router.navigate(['/reload']).then(() => {