This is an automated email from the ASF dual-hosted git repository.
dpogue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-ios.git
The following commit(s) were added to refs/heads/master by this push:
new fd08e6c fix: Append startURL to the initial url loaded (#973)
fd08e6c is described below
commit fd08e6cdd44003a8a430e79206b0a894857681fa
Author: jcesarmobile <[email protected]>
AuthorDate: Thu Aug 27 06:21:39 2020 +0200
fix: Append startURL to the initial url loaded (#973)
---
CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
b/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
index 6fd389e..a07bf29 100644
--- a/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
+++ b/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m
@@ -309,7 +309,7 @@ static void * KVOContext = &KVOContext;
NSString* startFilePath = [self.commandDelegate
pathForResource:[startURL path]];
NSURL *url = [[NSURL URLWithString:self.CDV_ASSETS_URL]
URLByAppendingPathComponent:request.URL.path];
if ([request.URL.path isEqualToString:startFilePath]) {
- url = [NSURL URLWithString:self.CDV_ASSETS_URL];
+ url = [NSURL URLWithString:[NSString
stringWithFormat:@"%@/%@", self.CDV_ASSETS_URL, startURL]];
}
if(request.URL.query) {
url = [NSURL URLWithString:[@"?"
stringByAppendingString:request.URL.query] relativeToURL:url];
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]