title: Opening links in the browser in PhoneGap (with a non-local index.html root)
body: <p>I've seen a few different discussions on how to open links in the browser instead of the WebView like <a href="https://stackoverflow.com/questions/14070841/phonegap-open-link-in-browser">this</a> and <a href="https://build.phonegap.com/blog/access-tags" rel="nofollow noreferrer">Phonegap's own documentation</a>. I'm having problems getting either of those two to work, though, and I'm wondering if it's because I'm loading a URL other than a local <code>index.html</code> file. Here's my setup.</p>
  
  <p>I'm loading a URL <code>www.example.com</code>. I want all URLs that are <code>www.non-example.com</code> to open in  the browser, while keeping all sub-URLs loading in my WebView. I've edited <code>cordova.xml</code> to have</p>
  
  <pre><code>&lt;access origin="http://www.example.com"/&gt;
  </code></pre>
  
  <p>but when I put a URL with </p>
  
  <pre><code>&lt;a href="http://www.non-example.com" target="_blank"&gt;Foo&lt;/a&gt;
  </code></pre>
  
  <p>and click it in my Android device, it just opens it in the WebView rather than the browser. I don't know if this is relevant, but I updated my PhoneGap to 2.2 with this release, and added a <code>config.xml</code> at the same level as my <code>index.html</code> (though I'm not sure it's being used, because I didn't recreate my Android project from scratch). So my questions boil down to these:</p>
  
  <p>1) How do I ensure URLs are opening in the browser if I'm using a non-local index.html?</p>
  
  <p>2) How do I know if my <code>config.xml</code> file is being used?</p>