diff --git a/src/app/users/create-user/create-user.component.ts b/src/app/users/create-user/create-user.component.ts index 838a2a452..5997138a9 100644 --- a/src/app/users/create-user/create-user.component.ts +++ b/src/app/users/create-user/create-user.component.ts @@ -105,12 +105,12 @@ export class CreateUserComponent implements OnInit { /** * Submits the user form and creates user, - * if successful redirects to users. + * if successful redirects to view created user. */ submit() { const user = this.userForm.value; this.usersService.createUser(user).subscribe((response: any) => { - this.router.navigate(['../'], { relativeTo: this.route }); + this.router.navigate(['../', response.resourceId], { relativeTo: this.route }); }); }