How to prekratite redirect to the Api Yandex maps?

Hello! Can you please tell what code I'm doing wrong. Screwed api Yandex maps to determine the user's country to show him the desired language. Does not work something. I'm not good at languages, maybe something not so prescribed? 5c9f93c63def3515545053.jpeg
March 19th 20 at 09:19
1 answer
March 19th 20 at 09:21
Solution
To determine the language to be used client side of the site, it is sufficient to examine the properties window.navigator.
How to determine the browser language of the user?
PS:
header('loacation ') - you can't use it in JS, this PHP.
In JS the same behavior is caused by the change properties window.location.href

Find more questions by tags Landing pagesHTMLAPIJavaScript