shimingxy 1 год назад
Родитель
Сommit
2a6eec17f8
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      maxkey-web-frontend/maxkey-web-app/src/app/service/authn.service.ts

+ 2 - 2
maxkey-web-frontend/maxkey-web-app/src/app/service/authn.service.ts

@@ -176,9 +176,9 @@ export class AuthnService {
       if (this.redirect_uri != '') {
       if (this.redirect_uri != '') {
         console.log(`redirect_uri ${this.redirect_uri}`);
         console.log(`redirect_uri ${this.redirect_uri}`);
         location.href = this.redirect_uri;
         location.href = this.redirect_uri;
+      } else {
+        this.router.navigateByUrl(url);
       }
       }
-
-      this.router.navigateByUrl(url);
     });
     });
   }
   }
 }
 }