title: iOS 9 Safari Web App links open in Safari
body: <p>I have a mobile web app capable safari app for iPhone running on iOS 9. There's only one problem: the fix for opening links IN the mobile web app, doesn't seem to work anymore.</p>
  
  <p>I have this code as a fix:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  $('a').click(function() {
      if(!$(this).hasClass('noeffect')) {
          window.location = $(this).attr('href');
          return false;
      }
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>But still my links are opening in a separate safari window, in stead of in the web app itself.</p>
  
  <p>Working demo can be seen at: <a href="http://www.dennisprins.nl/project6" rel="nofollow">http://www.dennisprins.nl/project6</a>, when you hit the "Toevoegen"-dashed box, you'll see what happens when you added the page to your homescreen.</p>
  
  <p>Thanks in advance</p>