Merge pull request #10648 from osmandapp/fix_article_nav

Fix travel article navigation
This commit is contained in:
vshcherb 2021-01-23 17:34:21 +01:00 committed by GitHub
commit 796d790993
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -404,6 +404,9 @@ public class TravelObfHelper implements TravelHelper {
Map<String, WikivoyageSearchResult> headerObjs = new HashMap<>();
if (parts != null && parts.length > 0) {
headers.addAll(Arrays.asList(parts));
if (!Algorithms.isEmpty(article.isParentOf)) {
headers.add(title);
}
}
for (String header : headers) {