Skip to content

The open alternative to Salesforce, designed for AI.

fix(auth): exclude /authorize from MinimalMetadataGater loading gate (#20572)

Félix Malfaitdbc033b29b3b
diff --git a/packages/twenty-front/src/modules/metadata-store/components/MinimalMetadataGater.tsx b/packages/twenty-front/src/modules/metadata-store/components/MinimalMetadataGater.tsx
index 41e362d6bbc..c570d1942e6 100644
--- a/packages/twenty-front/src/modules/metadata-store/components/MinimalMetadataGater.tsx
+++ b/packages/twenty-front/src/modules/metadata-store/components/MinimalMetadataGater.tsx
@@ -23,7 +23,8 @@ export const MinimalMetadataGater = ({ children }: React.PropsWithChildren) => {
isMatchingLocation(location, AppPath.ResetPassword) ||
isMatchingLocation(location, AppPath.CreateWorkspace) ||
isMatchingLocation(location, AppPath.PlanRequired) ||
- isMatchingLocation(location, AppPath.PlanRequiredSuccess);
+ isMatchingLocation(location, AppPath.PlanRequiredSuccess) ||
+ isMatchingLocation(location, AppPath.Authorize);
const shouldShowLoader = !isMinimalMetadataReady && !isOnExcludedPath;