diff --git a/src/app/commons/store/container/signin/app-signin.effect.ts b/src/app/commons/store/container/signin/app-signin.effect.ts index c83dbe5..fb25829 100644 --- a/src/app/commons/store/container/signin/app-signin.effect.ts +++ b/src/app/commons/store/container/signin/app-signin.effect.ts @@ -43,7 +43,7 @@ export class Effects { const queryString = `authToken=${info.authToken}`; this.rpcService.connect(queryString); - this.router.navigateByUrl(info.returnURL); + this.router.navigateByUrl(info.returnURL ? info.returnURL : '/'); }) ); @@ -56,7 +56,7 @@ export class Effects { const queryString = `authToken=${authToken}`; this.rpcService.connect(queryString); - this.router.navigateByUrl(info.returnURL); + this.router.navigateByUrl(info.returnURL ? info.returnURL : '/'); }) );