Skip to content

Commit ad197e5

Browse files
committed
fix: infinite redirect when page not exists
1 parent d2652de commit ad197e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

index.njk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ eleventyNavigation:
1818
<script>
1919
setTimeout(function(){
2020
if (window.navigator.language.startsWith('ar')){
21-
window.location.href = `${window.location.href}ar/`
21+
window.location.href = `/ar/`
2222
}else{
23-
window.location.href = `${window.location.href}en/`
24-
}},3000);
23+
window.location.href = `/en/`
24+
}},1000);
2525
</script>

0 commit comments

Comments
 (0)