diff --git a/client/src/pages/ProtectedRoute.jsx b/client/src/pages/ProtectedRoute.jsx index bf4385ecd..e57eba482 100644 --- a/client/src/pages/ProtectedRoute.jsx +++ b/client/src/pages/ProtectedRoute.jsx @@ -11,7 +11,8 @@ export function ProtectedRoute({currentUser, Component, redirectToLogin = true, if (!currentUser.second_factor_confirmed) { return ; } - if (!isEmpty(currentUser.services_without_aup)) { + //Ensure that we are not heading to service-aup which is initiated by eduTeams + if (!isEmpty(currentUser.services_without_aup) && window.location.href.indexOf("service-aup") === -1) { return ; } return }/>;