Skip to content

Commit

Permalink
Be more specific when detecting sandbox (fleetdm#8432)
Browse files Browse the repository at this point in the history
* Be more specific when detecting sandbox

* Fix typo in domain
  • Loading branch information
chiiph authored Oct 25, 2022
1 parent 1f39b73 commit 8185254
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

Expand Down

0 comments on commit 8185254

Please sign in to comment.