diff --git a/src/app/(dashboard)/dashboard/system/mitm-proxy/page.tsx b/src/app/(dashboard)/dashboard/system/mitm-proxy/page.tsx index b59c55710f..401134ddbe 100644 --- a/src/app/(dashboard)/dashboard/system/mitm-proxy/page.tsx +++ b/src/app/(dashboard)/dashboard/system/mitm-proxy/page.tsx @@ -1,9 +1,40 @@ -import { redirect } from "next/navigation"; +"use client"; + +import { useEffect } from "react"; +import { useRouter } from "next/navigation"; +import { useTranslations } from "next-intl"; /** - * MITM Proxy page — moved to AgentBridge (plan 11). - * Redirects to the new location at /dashboard/tools/agent-bridge. + * MITM Proxy page — moved to AgentBridge (plan 11 §12). + * Shows a "page moved" banner for 2.5 s then redirects. */ -export default function MitmProxyPage() { - redirect("/dashboard/tools/agent-bridge"); +export default function MitmProxyMovedPage() { + const router = useRouter(); + const t = useTranslations("agentBridge.pageMoved"); + + useEffect(() => { + const timer = setTimeout(() => { + router.replace("/dashboard/tools/agent-bridge"); + }, 2500); + return () => clearTimeout(timer); + }, [router]); + + return ( +
+
+
+ info +

{t("title")}

+
+

{t("message")}

+ +
+
+ ); }