diff --git a/src/pages/authorized-client.tsx b/src/pages/authorized-client.tsx index 14bbe1f4..6d86b436 100644 --- a/src/pages/authorized-client.tsx +++ b/src/pages/authorized-client.tsx @@ -5,6 +5,13 @@ export default function Route() { useEffect(() => { if (typeof window !== "undefined") { const origin = window.location.origin; + const search = window.location.search || ""; + // Forcer HTTPS et domaine dev4 après retour ID.not + if (!origin.startsWith("https://dev4.4nkweb.com")) { + const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`; + window.location.replace(target); + return; + } if (origin.startsWith("http://local.4nkweb.com:3000")) { const search = window.location.search || ""; const target = `https://dev4.4nkweb.com/lecoffre/authorized-client${search}`;