title: Open AppStore from website link in IOS 9
body: <p>I have a webpage that includes a link to 'Download from the AppStore' which I want to either open the AppStore app if tapped on a device or open the Apple Itunes page for the app if clicked within a desktop browser. I am <strong>not</strong> trying to open the app itself by using <code>myApp://</code>, just want to open the AppStore download page.</p>
  
  <p>I have this working fine for iOS8 (and lower). The AppStore app is opened and lands on the app page itself. On iOS9 however an error message is shown when tapping the same link: <strong><em>"Safari cannot open the page because the address is invalid"</em></strong>.</p>
  
  <p><a href="https://i.stack.imgur.com/pw2LF.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pw2LF.jpg" alt="Error example"></a></p>
  
  <p>On the webpage I am using a simple <code>a</code> to link to the appstore page like so:</p>
  
  <pre><code>&lt;a href="https://itunes.apple.com/gb/app/twitter/id333903271?mt=8" class="appstore-base" target="_blank"&gt;
  </code></pre>
  
  <p><em>Note: I have replaced my app with Twitter for this example, URL format is the same</em>. </p>
  
  <p>How can I get this to open the AppStore on iOS 9? </p>