always prefix href with baseURL

This commit is contained in:
adbenitez
2024-12-04 11:24:13 +01:00
parent 1b57880be3
commit 7d879f8d1f
2 changed files with 2 additions and 2 deletions
@@ -216,7 +216,7 @@ public class WebxdcActivity extends WebViewActivity implements DcEventCenter.DcE
webView.setNetworkAvailable(internetAccess); // this does not block network but sets `window.navigator.isOnline` in js land
webView.addJavascriptInterface(new InternalJSApi(), "InternalJSApi");
String href = b.getString(EXTRA_HREF, "");
String href = baseURL + "/" + b.getString(EXTRA_HREF, "index.html");
String encodedHref = "";
try {
encodedHref = URLEncoder.encode(href, Charsets.UTF_8.name());