From 90def12184a7d393873bbaa6dd1959283f4a7e5d Mon Sep 17 00:00:00 2001 From: Chumva Date: Fri, 25 May 2018 11:45:25 +0300 Subject: [PATCH] refactored buildTravelUrl --- OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java b/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java index 4836bcf4f5..75bd8a0ba2 100644 --- a/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java +++ b/OsmAnd/src/net/osmand/plus/wikipedia/WikiArticleHelper.java @@ -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) {