language redirect fixed
This commit is contained in:
15
index.html
15
index.html
@@ -1,16 +1,13 @@
|
|||||||
---
|
---
|
||||||
layout: default
|
layout: default
|
||||||
|
lang: en
|
||||||
---
|
---
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
var lang = navigator.language || navigator.userLanguage;
|
var userLang = navigator.language || navigator.userLanguage;
|
||||||
|
|
||||||
switch (lang) {
|
if (userLang.search("ko") != -1)
|
||||||
case "ko-KR":
|
window.location.href = "ko/";
|
||||||
window.location.href = "ko/";
|
else
|
||||||
break;
|
window.location.href = "en/";
|
||||||
default:
|
|
||||||
window.location.href = "en/";
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Reference in New Issue
Block a user