Skip to content

Commit

Permalink
fix: Append startURL to the initial url loaded (#973)
Browse files Browse the repository at this point in the history
  • Loading branch information
jcesarmobile authored Aug 27, 2020
1 parent f1a6737 commit fd08e6c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit fd08e6c

Please sign in to comment.