title: Framework7 navigation not working
body: <p>I have this in my-app.js:</p>
  
  <pre><code>var myApp = new Framework7({
      closeByOutsideClick : true,
      init: false 
  });
  
  var $$ = Dom7;
  
  // Add view
  var mainView = myApp.addView('.view-main');
  
  function avvia(info) {
      $.ajax({
        type: "POST",
        contentType: "application/json",
        //data: {info : info},
          data : JSON.stringify(info),
        timeout: 6000,
        url: "http://localhost:8180/api/",
        success: function(data){
            urlRedirect = data.urlRedirect;
            //window.location.href = urlRedirect;
            mainView.router.loadPage(urlRedirect);
        },
        beforeSend: function() {
          myApp.showPreloader('Loading...');
        },
        complete: function(data) {
          myApp.hidePreloader();
        },
        error: function (xhr, status, error) {
                // executed if something went wrong during call
                myApp.alert(error, ' Error');
                //if (xhr.status &gt; 0) alert('got error: ' + status); // status 0 - when load is interrupted
            }
        });
  }
  myApp.init();
  </code></pre>
  
  <p>After my ajax call, i would like to redirect the page to a new page that is returned as data field in case of success.
  My problem is that Framework7 navigation <code>mainView.router.loadPage(urlRedirect)</code> is not working, while standard <code>window.location.href = urlRedirect;</code> is working fine. How can i solve that?</p>