From 599541d60a39c3909da3235e1f3bc7fd838d1731 Mon Sep 17 00:00:00 2001 From: mithun-hegde-egov Date: Wed, 23 Oct 2024 12:19:16 +0530 Subject: [PATCH] citizen logout redirection handled in multiroot tenant --- .../TopBarSideBar/SideBar/StaticCitizenSideBar.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/SideBar/StaticCitizenSideBar.js b/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/SideBar/StaticCitizenSideBar.js index 9cad3e8c00e..0e14ba7283b 100644 --- a/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/SideBar/StaticCitizenSideBar.js +++ b/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/SideBar/StaticCitizenSideBar.js @@ -94,8 +94,16 @@ const StaticCitizenSideBar = ({ linkData, islinkDataLoading }) => { setShowDialog(true); }; const handleOnSubmit = () => { - Digit.UserService.logout(); - setShowDialog(false); + if (Digit.Utils.getMultiRootTenant()) { + Digit.UserService.logout(); + setShowDialog(false); + window.location.href=`/${window?.contextPath}/citizen/login`; + } + else{ + Digit.UserService.logout(); + setShowDialog(false); + } + }; const handleOnCancel = () => { setShowDialog(false);