title: Windows 10 UWP Webview local url problems
body: <p>Windows 10 UWP Webview </p>
  
  <p>I have the two html files located in a www folder under Assets (Assets/www/xxx.html) in a Windows 10 UWP, both files in VS 2015 are set to be copied to the output dir.</p>
  
  <pre><code>index.html
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Simple Script&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;form action="submit.html" method="post"&gt;
      Data:&lt;input type="text" name="somedata" &gt; &lt;br&gt; &lt;br&gt;
      &lt;input type="submit" value="Submit" &gt;
      &lt;/form&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  
  and submit.html
  
  &lt;!DOCTYPE html&gt;
  &lt;html lang="en"&gt;
  &lt;head&gt;
    &lt;meta charset="utf-8"&gt;
    &lt;title&gt;Dummy Submission&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;h2&gt; Your data has been submitted - Thank You. &lt;/h2&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>The Webview object is embbeded in the XMAL as below</p>
  
  <pre><code>&lt;WebView  x:Name="WebBrowser" HorizontalAlignment="Left" VerticalAlignment="Top"  Height="532" Width="1014" NavigationStarting="WebBrowser_NavigationStarting"/&gt;
  </code></pre>
  
  <p>And the index page is loaded by</p>
  
  <pre><code>    /// Helper to perform the navigation in webview
      /// &lt;/summary&gt;
      /// &lt;param name="url"&gt;&lt;/param&gt;
      private void NavigateWebview(string url)
      {
          try
          {
              Uri targetUri = new Uri(url);
              WebBrowser.Navigate(targetUri);
          }
          catch (FormatException myE)
          {
              // Bad address
              WebBrowser.NavigateToString(String.Format("&lt;h1&gt;Address is invalid, try again.  Details --&gt; {0}.&lt;/h1&gt;", myE.Message));
          }
      }
  
  
  NavigateWebview(@"ms-appx-web:///Assets/www/index.html");
  </code></pre>
  
  <p>The page loads and displays correctly but it will not display the linked 'submit.html' page, its just blank.</p>
  
  <p>If I trap the Navigation event it does occur but appears to be prefixed by a GUID as show below.</p>
  
  <p><a href="https://i.stack.imgur.com/KR4lm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/KR4lm.png" alt="enter image description here"></a>
  I have changed paths to absolute etc and read the docs in detail but I fail to see why this does not work.</p>
  
  <p>Ideas Please Guys ...</p>