title: mobile safari home screen app - link in a new window / tab
body: <p>,I have a mobile app that can be added to the home screen and viewed "full screen", by setting:    </p>
  
  <pre><code>meta name="apple-mobile-web-app-capable" content="yes"
  </code></pre>
  
  <p>In my app I have some link to files (mainly images or PDFs), like:</p>
  
  <pre><code>&lt;a href='@Url.Action("Download", "Attachment", new { id = a.Id } )' target="_blank" class="btn btn-sm btn-primary"&gt;
  </code></pre>
  
  <p>The problem is that when the user clicks the link, the image (or the PDF) is correctly displayed, but is then impossible to navigate back!
  The image is displayed full screen, the user can pinch to zoom, but is impossible to go back (even by using gestures).</p>
  
  <p>The only way to go back is to click the home button and then to re-enter the webapp.</p>
  
  <p>I tried also <strong>target="_blank"</strong>, but this seem to be ignored.</p>
  
  <p>If I stay on Safari (i.e.: I don't add the app to the home screen) or if don't set <strong>meta name="apple-mobile-web-app-capable" content="no"</strong> the problem don't occur: the image is open in a new tab as expected.</p>
  
  <p>Can be the problem related to the fact that I'm downloading files using MVC?
  Is this a mobile safari "bug"?</p>
  
  <p>Thanks to everyone!</p>