refactored buildTravelUrl

This commit is contained in:
Chumva 2018-05-25 11:45:25 +03:00
parent 4ce1625e3e
commit 90def12184

View file

@ -327,8 +327,7 @@ public class WikiArticleHelper {
}
public static String buildTravelUrl(String url, String lang) {
String title = url.substring(url.indexOf(':') + 1);
title = title.replace(" ", "_");
String title = url.replace(" ", "_");
try {
title = URLEncoder.encode(title, "UTF-8");
} catch (UnsupportedEncodingException e) {