Skip to content

Commit

Permalink
Fix: if the preset language does not exist, no language was selected
Browse files Browse the repository at this point in the history
  • Loading branch information
realityking committed Jul 14, 2023
1 parent e69dbc5 commit 7b7ab85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/javascripts/app/_lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ under the License.
languages = l;

var presetLanguage = getLanguageFromQueryString();
if (presetLanguage) {
if (presetLanguage && (jQuery.inArray(presetLanguage, languages) != -1)) {
// the language is in the URL, so use that language!
activateLanguage(presetLanguage);

Expand Down

0 comments on commit 7b7ab85

Please sign in to comment.