turns out Astro.redirect is borked
This commit is contained in:
parent
949f7c4936
commit
c23e57939e
1 changed files with 2 additions and 2 deletions
|
|
@ -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/";
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue