WKWebView loadFileURL works only once : <p>I need to load a local file in a WKWebView. I'm using the new ios9 method </p>

<p><code>- (nullable WKNavigation *)loadFileURL:(NSURL *)URL allowingReadAccessToURL:(NSURL *)readAccessURL</code></p>

<p>It works perfectly for the first load (navigation delegation is properly called), but if I try to load a new and different file, it does nothing.</p>

<p>The URL for the currentItem in the wkwebview instance is modified. But if I force a reload the delegate method didFinishNavigation is called with the previous set URL. I also tried to navigate forward but the file that was supposed to be loaded is the current one, it's not on the backForwardList. </p>

<p>The code I'm using to start the WKWebView and load the file:</p>

<pre><code>self.wk_webview = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)];
self.wk_webview.scrollView.delegate = self;
self.wk_webview.navigationDelegate = self;
[self.view addSubview:self.wk_webview];

NSURL *url = [NSURL fileURLWithPath:local_path];
[self.wk_webview loadFileURL:url allowingReadAccessToURL:[url URLByDeletingLastPathComponent]];
</code></pre>

<p>Am I missing something? I couldn't find anything related to this. </p>

<p>Any help is appreciated, thanks.</p>
