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 and dpogue committed Aug 28, 2020
1 parent efe6f1f commit 58598f7
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 58598f7

Please sign in to comment.