From ead41bab9a7754f9e5a756abdba86169afcbe485 Mon Sep 17 00:00:00 2001 From: "argiro.kokogiannaki" Date: Mon, 21 Sep 2020 08:21:55 +0000 Subject: [PATCH] [Library|Trunk] user components: set reload url using current host git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59441 d315682c-612b-4755-9ff5-7f18f6832af3 --- login/user.component.ts | 2 +- login/userMini.component.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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; }