diff --git a/core/src/main/java/org/openedx/core/ui/WebContentScreen.kt b/core/src/main/java/org/openedx/core/ui/WebContentScreen.kt index a79200111..86145bf6b 100644 --- a/core/src/main/java/org/openedx/core/ui/WebContentScreen.kt +++ b/core/src/main/java/org/openedx/core/ui/WebContentScreen.kt @@ -202,5 +202,19 @@ private fun WebViewContent( } } }, + update = { webView -> + body?.let { + webView.loadDataWithBaseURL( + apiHostUrl, + body.replaceLinkTags(isDarkTheme), + "text/html", + StandardCharsets.UTF_8.name(), + null + ) + } + contentUrl?.let { + webView.loadUrl(it) + } + } ) }