We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 603e8a0 commit bbf5ab5Copy full SHA for bbf5ab5
guide/theme/lang_toggle.js
@@ -42,9 +42,11 @@
42
// Fallback: If "book/" isn’t in the path
43
// Just go to the top-level file in the chosen language.
44
if (chosenLang === 'en')
45
- window.location.href = 'index.html';
+ newPath = 'index.html';
46
else
47
- window.location.href = chosenLang + '/index.html';
+ newPath = chosenLang + '/index.html';
48
+
49
+ window.location.href = window.location.hostname + '/' + newPath;
50
51
return;
52
}
0 commit comments