diff --git a/front/app/src/app/views/contract-drafts/drafts.component.ts b/front/app/src/app/views/contract-drafts/drafts.component.ts index 55c6796b..7686958b 100644 --- a/front/app/src/app/views/contract-drafts/drafts.component.ts +++ b/front/app/src/app/views/contract-drafts/drafts.component.ts @@ -162,7 +162,7 @@ export class DraftsCardComponent extends BaseDraftsComponent implements OnInit { publish() { this.crudService.create('contract', this.newContractModel).subscribe({ - next: (response: any) => this.router.navigate([`../../${response.id}`], {relativeTo: this.route}), + next: (response: any) => this.router.navigate([`../../contracts/${response.id}`], {relativeTo: this.route}), error: (err) => this.flashService.error(err) }); }