From 6fbd60e62b2f9b7b38dd287e43ec39e391e6a5e5 Mon Sep 17 00:00:00 2001 From: DirkSchlossmacher <62424946+DirkSchlossmacher@users.noreply.github.com> Date: Wed, 21 Jun 2023 12:32:11 +0200 Subject: [PATCH] Create redirect.js --- public/redirect.js | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 public/redirect.js diff --git a/public/redirect.js b/public/redirect.js new file mode 100644 index 000000000..4df3baba1 --- /dev/null +++ b/public/redirect.js @@ -0,0 +1,5 @@ +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; +}