diff --git a/FrontEnd/src/app/login/login-usos/login-usos.component.ts b/FrontEnd/src/app/login/login-usos/login-usos.component.ts index 4e44923..3b175c5 100644 --- a/FrontEnd/src/app/login/login-usos/login-usos.component.ts +++ b/FrontEnd/src/app/login/login-usos/login-usos.component.ts @@ -21,7 +21,7 @@ export class LoginUsosComponent implements OnInit { localStorage.getItem('outh_token_secret'), localStorage.getItem('oauth_verifier')).subscribe( message => { this.authenticationService.usosLogin(message.username, message.key); - this.router.navigate(['/home']); + this.router.navigate(['/my-groups']); } ); } diff --git a/FrontEnd/src/app/login/login.component.ts b/FrontEnd/src/app/login/login.component.ts index 65bbc80..7d59c34 100644 --- a/FrontEnd/src/app/login/login.component.ts +++ b/FrontEnd/src/app/login/login.component.ts @@ -65,7 +65,7 @@ export class LoginComponent implements OnInit { this.outh_token_secret = this.outh_token_secret.replace('oauth_token_secret=', ''); localStorage.setItem('outh_token', array[0].replace('oauth_token=', '')); localStorage.setItem('outh_token_secret', array[1].replace('oauth_token_secret=', '')); - window.location.href = environment.frontend + 'my-groups'; + window.location.href = el.url; }); } }