Skip to content

Commit

Permalink
Handle incorrectly set language parameter (#1756)
Browse files Browse the repository at this point in the history
Co-authored-by: Matthew Peveler <matt.peveler@gmail.com>
  • Loading branch information
realityking and MasterOdin committed Feb 7, 2024
1 parent cbdc43c commit 50239a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/javascripts/app/_lang.js
Expand Up @@ -143,7 +143,7 @@ under the License.
languages = l;

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

Expand Down

0 comments on commit 50239a7

Please sign in to comment.