refactored buildTravelUrl
This commit is contained in:
parent
4ce1625e3e
commit
90def12184
1 changed files with 1 additions and 2 deletions
|
@ -327,8 +327,7 @@ public class WikiArticleHelper {
|
||||||
}
|
}
|
||||||
|
|
||||||
public static String buildTravelUrl(String url, String lang) {
|
public static String buildTravelUrl(String url, String lang) {
|
||||||
String title = url.substring(url.indexOf(':') + 1);
|
String title = url.replace(" ", "_");
|
||||||
title = title.replace(" ", "_");
|
|
||||||
try {
|
try {
|
||||||
title = URLEncoder.encode(title, "UTF-8");
|
title = URLEncoder.encode(title, "UTF-8");
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
|
|
Loading…
Reference in a new issue