Skip to content

Commit 2cd0a7d

Browse files
Minor improvement to the redirection service for 404 error message.
1 parent 890fe87 commit 2cd0a7d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
var lang = navigator.language || navigator.userLanguage;
2-
if (lang == "tr-TR" | lang == "tr" | lang == "tr_TR")
2+
if (lang.startsWith("tr"))
33
{
44
document.location.href = "/404NotFound/404.html";
55
}
6-
else if (lang == "en-EN" | lang == "en" | lang == "en_US" | lang == "en-US")
6+
else if (lang.startsWith("en"))
77
{
88
document.location.href = "/404NotFound/404.html";
99
}

0 commit comments

Comments
 (0)