From 8185254088de4c59bccf337446435a203041e89e Mon Sep 17 00:00:00 2001 From: Tomas Touceda Date: Tue, 25 Oct 2022 18:35:49 -0300 Subject: [PATCH] Be more specific when detecting sandbox (#8432) * Be more specific when detecting sandbox * Fix typo in domain --- .../components/AuthenticatedRoutes/AuthenticatedRoutes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/router/components/AuthenticatedRoutes/AuthenticatedRoutes.tsx b/frontend/router/components/AuthenticatedRoutes/AuthenticatedRoutes.tsx index 3a50564319..db84db4a09 100644 --- a/frontend/router/components/AuthenticatedRoutes/AuthenticatedRoutes.tsx +++ b/frontend/router/components/AuthenticatedRoutes/AuthenticatedRoutes.tsx @@ -44,7 +44,7 @@ export const AuthenticatedRoutes = ({ // this works with App.tsx. if authToken does // exist, user state is checked and fetched if null if (!authToken()) { - if (window.location.hostname.includes("sandbox")) { + if (window.location.hostname.includes(".sandbox.fleetdm.com")) { window.location.href = "https://www.fleetdm.com/try-fleet/login"; }