improve language detection in the url