From fd08e6cdd44003a8a430e79206b0a894857681fa Mon Sep 17 00:00:00 2001 From: jcesarmobile Date: Thu, 27 Aug 2020 06:21:39 +0200 Subject: [PATCH] fix: Append startURL to the initial url loaded (#973) --- .../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 6fd389ef9..a07bf290a 100644 --- a/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m +++ b/CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m @@ -309,7 +309,7 @@ - (id)loadRequest:(NSURLRequest*)request 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];