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 697c0b6 commit 1865d24Copy full SHA for 1865d24
examples/js/common.js
@@ -79,6 +79,7 @@
79
function localize() {
80
var lang = utils.getLanguage();
81
var pathname = window.location.pathname.replace("/en/", "/");
82
+ var hash = window.location.hash;
83
var href = window.location.origin + pathname;
84
if (lang === "en-US") {
85
if (getVersion()) {
@@ -92,10 +93,10 @@
92
93
}
94
95
- if ((window.location.origin + window.location.pathname) === href) {
96
+ if ((window.location.origin + window.location.pathname+hash) === href+hash) {
97
return;
98
- window.location = href;
99
+ window.location = href+hash;
100
101
102
function getCommonScriptPath() {
0 commit comments