From f8b2d8fe0fda75f8ee608bf05f71f099eff6b9de Mon Sep 17 00:00:00 2001 From: Jeff Wang Date: Tue, 2 Aug 2016 16:49:24 +0800 Subject: [PATCH] fixed base URL for webview on android doesn't work (#16279) fixed base URL for webview on android doesn't work --- cocos/ui/UIWebViewImpl-android.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cocos/ui/UIWebViewImpl-android.cpp b/cocos/ui/UIWebViewImpl-android.cpp index ad7c801361..a8bb7c2e75 100644 --- a/cocos/ui/UIWebViewImpl-android.cpp +++ b/cocos/ui/UIWebViewImpl-android.cpp @@ -179,7 +179,7 @@ namespace cocos2d { } void WebViewImpl::loadHTMLString(const std::string &string, const std::string &baseURL) { - JniHelper::callStaticVoidMethod(className, "loadHTMLString", _viewTag, string, baseURL); + JniHelper::callStaticVoidMethod(className, "loadHTMLString", _viewTag, string, getFixedBaseUrl(baseURL)); } void WebViewImpl::loadURL(const std::string &url) {