[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
This commit is contained in:
argiro.kokogiannaki 2020-09-21 08:21:55 +00:00
parent 04ef1ba8cc
commit ead41bab9a
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;
}