title: window.open() doesn't work in mobile Safari web-app added to home screen
body: <p>Here is all the code I've tried:</p>
  
  <pre><code>select:function(event, ui) {
      window.open(ui.item.value, "_blank");
  }
  
  select:function(event, ui) {
      window.location.href = ui.item.value;
  }
  </code></pre>
  
  <p>When in web app mode, the screen just refreshes, it doesn't go to the location. In Mobile Safari, it works as intended.</p>
  
  <p>Is this a limiting with web apps on iPhone? Is there a way around it?</p>
  
  <p>Here is the complete code:</p>
  
  <pre><code>&lt;script&gt;
  $(document).ready(function() {
      var cct = $('input[name=csrf_token]').val();    
      var searchInput = $('input[name=search]');
  
      function loadEventsData(onSuccess){
        $.ajax({
          type: 'POST',
          url: '&lt;?php echo site_url('ajax_frontend/getEventsSearch'); ?&gt;',
          dataType: 'json',
          success: onSuccess,
          error: function(XMLHttpRequest, textStatus, errorThrown) { alert(errorThrown); }
        });
      }
  
      function initializeEventsAutocomplete(data){
        searchInput.addClass('loaded').autocomplete({
        source:data,
        appendTo: '.search_autocomplete',
        minLength:2,
        delay:0,
        selectFirst:false,
        open: function(event, ui) {
          $('ul.events').hide();
          $('.ui-autocomplete').removeAttr('style');
          $('.icon-search').hide();
          $('.icon-close').show();
        },
        close: function(event, ui) {
          val = searchInput.val();
          searchInput.autocomplete("search", val);
          searchInput.focus();
          return false;
        },
        select:function(event, ui) {
          window.location.href = ui.item.value;
          return false;
        }
        });
      }
  
      $('form').submit(function(e) {
          e.preventDefault();
          searchInput.blur();
      });
  
      searchInput.keyup(function(){
      if($(this).is(".loaded")) return;
      loadEventsData(initializeEventsAutocomplete);
      });
  
      $('.icon-close').click(function(e) {
          e.preventDefault();
  
          $(this).hide();
          $('.icon-search').show();
          searchInput.autocomplete('close');
          $('ul.events').show();
          searchInput.val('');
      });
  });
  &lt;/script&gt;
  </code></pre>
  
  <p>And here is the JSON (some of it):</p>
  
  <pre><code>[{"value":"http:\/\/events.dev\/index.php\/event\/canada-day","label":"Canada Day"},{"value":"http:\/\/events.dev\/index.php\/event\/triathlon-festival","label":"Triathlon Festival"}]
  </code></pre>