diff --git a/src/scripts/coopstarter.js b/src/scripts/coopstarter.js index 2f58c56eaa978152f2b3cfe8abb5f1f47cada0e7..b4d913bffd104c147e6521df48549a335590d1eb 100644 --- a/src/scripts/coopstarter.js +++ b/src/scripts/coopstarter.js @@ -357,7 +357,7 @@ function manageSelectLanguage() { var base_url = location.host //If the selected language is french - if (uriLanguage === '{"@id": "http://localhost:8000/languages/1/"}') { + if (uriLanguage.substr(uriLanguage.length - 14) == 'languages/1/"}') { //Redirection with the appropriate prefixe. var redirect = "http://"+base_url+'/fr/'+pathAfterThePrefix