Skip to content

Commit b931f8e

Browse files
RI-6524 fix for not-found page is shown instead of agreements
1 parent f7c1df9 commit b931f8e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

redisinsight/ui/src/utils/routerWithSubRoutes.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,11 @@ const PrivateRoute = (route: IRoute) => {
2828
)
2929
}
3030

31-
return haveToAcceptAgreements || feature?.flag === false
31+
if (haveToAcceptAgreements) {
32+
return <Redirect to="/" />
33+
}
34+
35+
return feature?.flag === false
3236
? <Redirect to={Pages.notFound} />
3337
: (
3438
// pass the sub-routes down to keep nesting

0 commit comments

Comments
 (0)