diff --git a/login/user.component.ts b/login/user.component.ts index 890eef49..f097ea7b 100644 --- a/login/user.component.ts +++ b/login/user.component.ts @@ -115,7 +115,7 @@ export class UserComponent { queryParams = splits[1]; } } - Session.setReloadUrl(properties.domain, properties.baseLink + baseUrl, queryParams); + Session.setReloadUrl(location.protocol + "//" + location.host,properties.baseLink + baseUrl, queryParams); } console.log(Session.getReloadUrl()); window.location.href = this.properties.loginUrl; diff --git a/login/userMini.component.ts b/login/userMini.component.ts index 1ff5ad98..d55c718f 100644 --- a/login/userMini.component.ts +++ b/login/userMini.component.ts @@ -239,7 +239,7 @@ export class UserMiniComponent implements OnInit, OnChanges { } logIn() { - Session.setReloadUrl(properties.domain, properties.baseLink + this.redirectUrl, this.search); + Session.setReloadUrl(location.protocol + "//" + location.host, properties.baseLink + this.redirectUrl, this.search); window.location.href = this.logInUrl; }