diff --git a/components/home.js b/components/home.js index 44084220..c5ffe7af 100644 --- a/components/home.js +++ b/components/home.js @@ -568,9 +568,11 @@ setShowCountryButtons(false) const location = `/${options?.language !== "en" ? options?.language : ""}` if(!window.location.pathname.includes(location)) { + console.log("changing lang", location) window.location.href = location+qPsuffix; } if(options?.language === "en" && ["es", "fr", "de", "ru"].includes(window.location.pathname.split("/")[1])) { + console.log("changing lang", location) window.location.href = "/"+qPsuffix; } } catch(e) {} diff --git a/components/localizedHome.js b/components/localizedHome.js index 798f3e0c..5a8fe299 100644 --- a/components/localizedHome.js +++ b/components/localizedHome.js @@ -40,6 +40,7 @@ export default function LocalizedHome({ path }) { } } else { if(path !== language) { + console.log("Redirecting to", language); window.location.href = `/${language}${qPsuffix}`; } } diff --git a/server.js b/server.js index 8744a422..c47e1209 100644 --- a/server.js +++ b/server.js @@ -1016,7 +1016,7 @@ Key is saved at: /etc/letsencrypt/live/www.worldguessr.com/privkey.pem } if (json.type === 'verify') { // account verification - if((!json.secret) || json.secret === 'not_logged_in') { + if((!json.secret) ||(json.secret === 'not_logged_in')) { if(!player.verified) { // guest mode