diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/App.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/App.js index 100884bb5..a2fec0412 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/App.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/App.js @@ -4,7 +4,7 @@ import CitizenApp from "./pages/citizen"; import EmployeeApp from "./pages/employee"; import CommonApp from "./pages/common"; -export const DigitApp = ({ stateCode, modules, appTenants, logoUrl, initData, defaultLanding = "citizen" }) => { +export const DigitApp = ({ stateCode, modules, appTenants, logoUrl, initData, defaultLanding = "employee" }) => { const history = useHistory(); const { pathname } = useLocation(); const innerWidth = window.innerWidth; @@ -65,13 +65,22 @@ export const DigitApp = ({ stateCode, modules, appTenants, logoUrl, initData, de pathname, initData, }; + + // Do not redirect if it's a payment route under citizen + const shouldRedirectToEmployee = () => { + if (pathname.startsWith(`/${window?.contextPath}/citizen/payment`)) { + return false; + } + return true; + }; + return ( - + {shouldRedirectToEmployee() ? : }