From d1c3347eb3dea5b24b752479ce203be792aacb00 Mon Sep 17 00:00:00 2001 From: Vijay-pole Date: Wed, 20 May 2026 18:24:15 +0530 Subject: [PATCH] update redirect btoa(base64) encoded value, now it will come plane text value --- admin-ui/src/app/core/services/logout.service.ts | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/admin-ui/src/app/core/services/logout.service.ts b/admin-ui/src/app/core/services/logout.service.ts index 4c9bd943..2fa5fddb 100644 --- a/admin-ui/src/app/core/services/logout.service.ts +++ b/admin-ui/src/app/core/services/logout.service.ts @@ -21,8 +21,14 @@ export class LogoutService { private appService: AppConfigService ) {} - logout() { - //TODO: NEED TO CHECK THE IMPLEMENTATION LATER - window.location.href = `${this.appService.getConfig().baseUrl}${this.appService.getConfig().logout}?redirecturi=`+btoa(window.location.href); - } +logout() { + const redirectUrl = window.location.href; + + const finalUrl = + `${this.appService.getConfig().baseUrl}` + + `${this.appService.getConfig().logout}` + + `?redirecturi=${redirectUrl}`; + + window.location.href = finalUrl; +} }