diff --git a/slingit/page/default_page/js/lang_switcher.js b/slingit/page/default_page/js/lang_switcher.js index e7ce427..07164fc 100644 --- a/slingit/page/default_page/js/lang_switcher.js +++ b/slingit/page/default_page/js/lang_switcher.js @@ -4,9 +4,9 @@ function switchLocale(locale){ function reloadWithQueryStringVars (queryStringVars) { var existingQueryVars = location.search ? location.search.substring(1).split("&") : [], - currentUrl = location.search ? location.href.replace(location.search,"") : location.href, - newQueryVars = {}, - newUrl = currentUrl.replace(/#/g, "#") + "?"; + //currentUrl = location.search ? location.href.replace(location.search,"") : location.href, + newQueryVars = {}, + newUrl = "http://www.slingit.org/?_lang="+queryStringVars._lang+"#"; if(existingQueryVars.length > 0) { for (var i = 0; i < existingQueryVars.length; i++) { var pair = existingQueryVars[i].split("=");