diff --git a/spiffworkflow-frontend/src/routes/AdminRedirect.tsx b/spiffworkflow-frontend/src/routes/AdminRedirect.tsx index 064680f38..276ecbdc4 100644 --- a/spiffworkflow-frontend/src/routes/AdminRedirect.tsx +++ b/spiffworkflow-frontend/src/routes/AdminRedirect.tsx @@ -4,7 +4,9 @@ import { useNavigate } from 'react-router-dom'; export default function AdminRedirect() { const navigate = useNavigate(); useEffect(() => { - const newPath = window.location.pathname.replace(/^\/admin\//, '/'); + let newPath = window.location.pathname.replace(/^\/admin\//, '/'); + const queryParams = window.location.search; + newPath = `${newPath}${queryParams}`; navigate(newPath); }, [navigate]);