Allow www redirects
This commit is contained in:
parent
780c4c6d8e
commit
c14908d62f
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user