[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:
parent
04ef1ba8cc
commit
ead41bab9a
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue