Skip to content

Commit

Permalink
added multiroottenant check
Browse files Browse the repository at this point in the history
  • Loading branch information
NabeelAyubee committed Sep 10, 2024
1 parent 8ce15b6 commit 20aa122
Showing 1 changed file with 16 additions and 9 deletions.
25 changes: 16 additions & 9 deletions micro-ui/web/micro-ui-internals/packages/modules/core/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,22 @@ export const DigitAppWrapper = ({ stateCode, modules, appTenants, logoUrl, initD
}
>
<Switch>
<Route exact path={`/${window?.globalPath}/user/sign-up`}>
<SignUp stateCode={stateCode} />
</Route>
<Route exact path={`/${window?.globalPath}/user/otp`}>
<Otp />
</Route>
<Route exact path={`/${window?.globalPath}/user/url`}>
<ViewUrl />
</Route>
{Digit.Utils.getMultiRootTenant() && (
<Route path={`/${window?.globalPath}`}>
<Route exact path={`/${window?.globalPath}/user/sign-up`}>
<SignUp stateCode={stateCode} />
</Route>
<Route exact path={`/${window?.globalPath}/user/otp`}>
<Otp />
</Route>
<Route exact path={`/${window?.globalPath}/user/url`}>
<ViewUrl />
</Route>
<Route>
<Redirect to={Digit.Utils.getMultiRootTenant() ? `/${window?.globalPath}/user/sign-up` : `/${window?.contextPath}/${defaultLanding}`} />
</Route>
</Route>
)}
{window?.globalPath !== window?.contextPath && (
<Route path={`/${window?.contextPath}`}>
<DigitApp
Expand Down

0 comments on commit 20aa122

Please sign in to comment.