Skip to content

Commit b020324

Browse files
Language detection and redirection is set to the website's homepage.
1 parent ffa933a commit b020324

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

assets/WS_Service/LangService/lang.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
var lang = navigator.language;
22
if (lang.startsWith("tr"))
33
{
4-
document.location.href = "/WS_Pages/TR/mainpage";
4+
document.location.href = "/";
55
}
66
else if (lang.startsWith("en"))
77
{
8-
document.location.href = "/WS_Pages/EN/mainpage";
8+
document.location.href = "/";
99
}
1010
else
1111
{

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
<link rel="stylesheet" href="https://os-w-socialmediacenter.onrender.com/static/style/style.css">
2525
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
2626
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/js/bootstrap.bundle.min.js"></script>
27-
<!--<script src="/assets/WS_Service/LangService/lang.js"></script>-->
27+
<script src="/assets/WS_Service/LangService/lang.js"></script>
2828
</head>
2929
<body>
3030
<nav class="navbar navbar-expand-lg title-navbar">

0 commit comments

Comments
 (0)