From 5e299f67b2b03750afb2a5c6cce1d664e4b4cc1f Mon Sep 17 00:00:00 2001 From: Keith Date: Sun, 22 Nov 2026 15:07:49 +0100 Subject: [PATCH] Fix the language switcher: inline onchange died on 'URL is not a constructor' (document.URL shadows the URL constructor in inline-handler scope); moved to a delegated change listener that assigns location.href directly --- src/layouts/Site.astro | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/layouts/Site.astro b/src/layouts/Site.astro index bafc05e..e0e556f 100644 --- a/src/layouts/Site.astro +++ b/src/layouts/Site.astro @@ -205,10 +205,7 @@ const hasForm = isAudiencePage; ))}