set login redirect to the current url

This commit is contained in:
argirok 2022-05-18 15:25:11 +03:00
parent 7ffe95f12b
commit e233a32875
1 changed files with 2 additions and 1 deletions

View File

@ -126,6 +126,7 @@ export class EGIDataTransferComponent {
}
ngOnInit() {
console.log( window.location.href)
console.log(COOKIE.getCookie("EGIAccessToken"))
this.accessToken = COOKIE.getCookie("EGIAccessToken");
for(let doi of this.dois){
@ -166,7 +167,7 @@ export class EGIDataTransferComponent {
}
checkin(){
window.location.href = this.loginURL+"?redirect="+ encodeURIComponent("http://scoobydoo.di.uoa.gr:4400"+this._router.url+"&egiTransfer=t");
window.location.href = this.loginURL+"?redirect="+ encodeURIComponent(window.location.href + "&egiTransfer=t");
}
parse(){