Commit fd5cba00 authored by Robert Lord's avatar Robert Lord

Fix small bug with new language tabs

parent d14fd0f7
...@@ -106,15 +106,12 @@ under the License. ...@@ -106,15 +106,12 @@ under the License.
// returns a new query string with the new language in it // returns a new query string with the new language in it
function generateNewQueryString(language) { function generateNewQueryString(language) {
if (location.search.length >= 1) { var url = parseURL(location.search);
var url = parseURL(location.search); if (url.language) {
if (url.language) { url.language = language;
url.language = language; return stringifyURL(url);
return stringifyURL(url);
} else {
return language
}
} }
return language;
} }
// if a button is clicked, add the state to the history // if a button is clicked, add the state to the history
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment