From 221728ebd641cff7d8b80679a974d835217a005c Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Thu, 22 Jun 2023 14:31:10 +0200 Subject: [PATCH] Update redirect.js --- public/redirect.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/public/redirect.js b/public/redirect.js index 966217809..768cb22ca 100644 --- a/public/redirect.js +++ b/public/redirect.js @@ -1,5 +1,13 @@ +if (window.location.hostname === "adexgpt.adexpartners.com") { + var currentPath = window.location.pathname + window.location.search + window.location.hash; + var newUrl = "https://adexgpt.vercel.app" + currentPath; + window.location.href = newUrl; +} + +/* if (window.location.hostname === "adexgpt.vercel.app") { var currentPath = window.location.pathname + window.location.search + window.location.hash; var newUrl = "https://adexgpt.adexpartners.com" + currentPath; -// window.location.href = newUrl; + window.location.href = newUrl; } +*/