From e233a32875527b1cbd70f0f1182a9f28b5515b5e Mon Sep 17 00:00:00 2001 From: argirok Date: Wed, 18 May 2022 15:25:11 +0300 Subject: [PATCH] set login redirect to the current url --- src/app/utils/transferData.component.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/utils/transferData.component.ts b/src/app/utils/transferData.component.ts index a9f4ae9..7f7752d 100644 --- a/src/app/utils/transferData.component.ts +++ b/src/app/utils/transferData.component.ts @@ -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(){