Forum Archive

Webview load_html issue

DigiDan

When using ui.webview.load_html() to use an HTML string the subsequent web page loaded has problems loading any relative links. All of these links have the protocol applewebdata://. From my research it seems that the equivalent objective c uiwebview function takes an extra baseUrl parameter to allow it to handle these links correctly.
Is there any chance to update ui.webview to take this extra parameter?

JonB

Since you have the string, just use replace all instances with http...
Alternatively, implement a webview_should_start_load In your delegate that does this, though that will only work for clicked links