Skip to content

Commit 2de322b

Browse files
committed
Fix the stages has no answer about simulator when changing language
1 parent aacbf75 commit 2de322b

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

code.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,7 @@ Code.changeLanguage = function () {
268268
var newLang = encodeURIComponent(
269269
languageMenu.options[languageMenu.selectedIndex].value);
270270
var search = window.location.search;
271+
var hash = window.location.hash;
271272
if (search.length <= 1) {
272273
search = '?lang=' + newLang;
273274
} else if (search.match(/[?&]lang=[^&]*/)) {
@@ -277,7 +278,7 @@ Code.changeLanguage = function () {
277278
}
278279

279280
window.location = window.location.protocol + '//' +
280-
window.location.host + window.location.pathname + search;
281+
window.location.host + window.location.pathname + search + hash;
281282
};
282283

283284
/**

index-stages-en.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
<meta itemprop="name" content="Webduino Blockly Editor">
1111
<meta itemprop="image" content="//blockly.webduino.io/media/tutorials-snapshot.jpg">
12-
<meta itemprop="description" content="Webduino Blockly Editor simply uses web development languages, such as HTML or Javascript. Webduino also has a rich online resources with hundreds of lectures, case-studies, and demo videos. We provide you the most complete and convenience way to start your IoT project.>
12+
<meta itemprop="description" content="Webduino Blockly Editor simply uses web development languages, such as HTML or Javascript. Webduino also has a rich online resources with hundreds of lectures, case-studies, and demo videos. We provide you the most complete and convenience way to start your IoT project.">
1313

1414
<meta property="og:title" content="Webduino Blockly Editor" >
1515
<meta property="og:url" content="//blockly.webduino.io/index-tutorials.html">

0 commit comments

Comments
 (0)