mirror of
https://github.com/empayre/fleet.git
synced 2024-11-06 00:45:19 +00:00
Fix URL check for sandbox redirect (#7227)
This commit is contained in:
parent
18852aae66
commit
a4c1e25c98
@ -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 New Issue
Block a user