diff --git a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts index 352897589..a25e82b14 100644 --- a/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts +++ b/dmp-frontend/src/app/ui/user-profile/user-profile.component.ts @@ -131,7 +131,8 @@ export class UserProfileComponent extends BaseComponent implements OnInit, OnDes this.formGroup.disable(); this.authService.me() .pipe(takeUntil(this._destroyed)) - .subscribe(result => window.location.reload()); + .subscribe(result => this.router.navigate(['/profile'])); + // .subscribe(result => window.location.reload()); }, error => { console.log(error);