From 2a6eec17f869f7ed1003c5de7810abe8495676a4 Mon Sep 17 00:00:00 2001 From: shimingxy Date: Mon, 4 Nov 2024 14:24:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=A4=E8=AF=81=E5=90=8E=E8=B7=B3=E8=BD=AC?= =?UTF-8?q?=E5=88=A4=E6=96=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maxkey-web-app/src/app/service/authn.service.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); }); } }