mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 17:08:53 +00:00
Fix URL check for sandbox redirect (#7227)
This commit is contained in:
parent
18852aae66
commit
a4c1e25c98
1 changed files with 1 additions and 2 deletions
|
|
@ -47,9 +47,8 @@ export const AuthenticatedRoutes = ({
|
|||
useDeepEffect(() => {
|
||||
// this works with App.tsx. if authToken does
|
||||
// exist, user state is checked and fetched if null
|
||||
|
||||
if (!authToken()) {
|
||||
if (window.location.pathname.includes("sandbox")) {
|
||||
if (window.location.hostname.includes("sandbox")) {
|
||||
return redirectToSandboxLogin();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue