refactored buildTravelUrl

This commit is contained in:
Chumva 2018-05-25 11:45:25 +03:00
parent 8393b20aef
commit 43b74f90f2

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) {