1

Allow www redirects

This commit is contained in:
Evan Pratten 2024-10-28 11:03:25 -04:00
parent 780c4c6d8e
commit c14908d62f

View File

@ -26,7 +26,7 @@ async function redirect_secondary_domains(context) {
let url = new URL(context.request.url);
// If the request is for any of the secondary domains, redirect to the primary domain
var secondary_domains = ['va3zza.com', 'evan.pratten.ca', 'evan.warren.pratten.ca'];
var secondary_domains = ['va3zza.com', 'evan.pratten.ca', 'evan.warren.pratten.ca', 'www.ewpratten.com'];
if (secondary_domains.includes(url.hostname)) {
url.searchParams.set("utm_source", url.hostname);
url.searchParams.set("utm_campaign", "secondary_domains");