diff --git a/maxkey-web-frontend/maxkey-web-app/src/app/service/authn.service.ts b/maxkey-web-frontend/maxkey-web-app/src/app/service/authn.service.ts index 6f60fc904..315ad27f4 100644 --- a/maxkey-web-frontend/maxkey-web-app/src/app/service/authn.service.ts +++ b/maxkey-web-frontend/maxkey-web-app/src/app/service/authn.service.ts @@ -176,9 +176,9 @@ export class AuthnService { if (this.redirect_uri != '') { console.log(`redirect_uri ${this.redirect_uri}`); location.href = this.redirect_uri; + } else { + this.router.navigateByUrl(url); } - - this.router.navigateByUrl(url); }); } }