From c23e57939ee5e1cffb1a601cce97140fe59f73c3 Mon Sep 17 00:00:00 2001 From: wearrrrr Date: Wed, 10 Apr 2024 18:12:12 -0500 Subject: [PATCH] turns out Astro.redirect is borked --- src/pages/index.astro | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/index.astro b/src/pages/index.astro index a078c0b..764451d 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -30,10 +30,10 @@ import { ViewTransitions } from "astro:transitions"; } else { if (navigator.language.includes("ja")) { localStorage.setItem("alu__selectedLanguage", JSON.stringify({ value: "jp" })); - Astro.redirect("/jp/"); + window.location.href = "/jp/"; } else { localStorage.setItem("alu__selectedLanguage", JSON.stringify({ value: "en" })); - Astro.redirect("/en/"); + window.location.href = "/en/"; } }