Skip to content

Commit 58598f7

Browse files
jcesarmobiledpogue
authored andcommitted
fix: Append startURL to the initial url loaded (#973)
1 parent efe6f1f commit 58598f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CordovaLib/Classes/Private/Plugins/CDVWebViewEngine/CDVWebViewEngine.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ - (id)loadRequest:(NSURLRequest*)request
309309
NSString* startFilePath = [self.commandDelegate pathForResource:[startURL path]];
310310
NSURL *url = [[NSURL URLWithString:self.CDV_ASSETS_URL] URLByAppendingPathComponent:request.URL.path];
311311
if ([request.URL.path isEqualToString:startFilePath]) {
312-
url = [NSURL URLWithString:self.CDV_ASSETS_URL];
312+
url = [NSURL URLWithString:[NSString stringWithFormat:@"%@/%@", self.CDV_ASSETS_URL, startURL]];
313313
}
314314
if(request.URL.query) {
315315
url = [NSURL URLWithString:[@"?" stringByAppendingString:request.URL.query] relativeToURL:url];

0 commit comments

Comments
 (0)