fix localized deep links to help

the anchor must not be taken into account when checking for the existance of the asset file.

closes #2883

cmp #2842
This commit is contained in:
B. Petersen
2023-11-24 21:09:20 +01:00
committed by bjoern
parent 2cc369030e
commit cbd744ad00
@@ -19,7 +19,7 @@ public class LocalHelpActivity extends WebViewActivity
getSupportActionBar().setTitle(getString(R.string.menu_help));
String section = getIntent().getStringExtra(SECTION_EXTRA);
String helpPath = "help/LANG/help.html" + (section!=null? section : "");
String helpPath = "help/LANG/help.html";
String helpLang = "en";
try {
Locale locale = dynamicLanguage.getCurrentLocale();
@@ -39,7 +39,7 @@ public class LocalHelpActivity extends WebViewActivity
e.printStackTrace();
}
webView.loadUrl("file:///android_asset/" + helpPath.replace("LANG", helpLang));
webView.loadUrl("file:///android_asset/" + helpPath.replace("LANG", helpLang) + (section!=null? section : ""));
}
@Override