diff --git a/frontend/router/components/AuthenticatedRoutes/AuthenticatedRoutes.tsx b/frontend/router/components/AuthenticatedRoutes/AuthenticatedRoutes.tsx index 3a50564319e3..db84db4a09e0 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"; }