We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8e18754 + 531d897 commit 2de567eCopy full SHA for 2de567e
1 file changed
index.html
@@ -24,14 +24,11 @@
24
var language = languages[code];
25
if (!language) { language = "en"; }
26
27
- // If we're running on localhost/loopback for local development,
28
- // keep redirects relative so the developer can test locally.
29
var host = window.location.hostname;
30
- var isLocal = (host === 'localhost' || host === '127.0.0.1' || host === '::1');
31
- if (isLocal) {
32
- document.location = "/" + language + "/";
33
- } else {
+ if (host === 'www.ruby-lang.org') {
34
document.location = "https://www.ruby-lang.org/" + language + "/";
+ } else {
+ document.location = "/" + language + "/";
35
}
36
</script>
37
<noscript>
0 commit comments