Skip to content
This repository has been archived by the owner on Mar 20, 2024. It is now read-only.

Commit

Permalink
Fix language redirection for Github pages
Browse files Browse the repository at this point in the history
  • Loading branch information
LeBenLeBen committed Feb 24, 2016
1 parent 482bf9b commit 165e65d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
language = 'en';
}

window.location = location.protocol + '//' + location.hostname + (location.port ? ':' + location.port : '') + '/' + language + '/';
window.location = window.location.href + language + '/';
</script>

<!-- Ensure redirection even for people with JavaScript disabled -->
Expand Down

0 comments on commit 165e65d

Please sign in to comment.