Update redirect.js

This commit is contained in:
DirkSchlossmacher 2023-06-22 14:31:10 +02:00 committed by GitHub
parent 22e1364bed
commit 221728ebd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
}
*/