From c14908d62f8542266c6b5b4ad20e0e618e5f9fac Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 28 Oct 2024 11:03:25 -0400 Subject: [PATCH] Allow www redirects --- static/functions/_middleware.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/functions/_middleware.js b/static/functions/_middleware.js index 9673bc8..92c13ee 100644 --- a/static/functions/_middleware.js +++ b/static/functions/_middleware.js @@ -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");