title: How to open a url with parameters in external browser with WinJS
body: <p>I have a metro app developed with WinJS in VS2012 and I want to open this address</p>
  
  <pre><code>window.location = "http://XXX.XXX.XX.XXX:XXXX/test/AU/jsp/AU000007.jsp";
  </code></pre>
  
  <p>this works ok, opens the webpage on new browser from my metro app</p>
  
  <p>But I want to add several parameters encrypted by using jcrypto so I do this:</p>
  
  <pre><code>//message encryption
  message = jcrypto(message);
  message = "http://XXX.XXX.XX.XXX:XXXX/test/AU/jsp/AU000007.jsp?data=" + message;
  
  window.location = message;
  </code></pre>
  
  <p>but it just opens the link on my metro app, how to fix that???</p>
  
  <hr>
  
  <p><strong>UPDATE:</strong> thanks to WiredPrairie's suggestion I found this answer:</p>
  
  <pre><code>    var uri = new Windows.Foundation.Uri("http://XXX.XXX.XX.XXX:XXXX/test/AU/jsp/AU000007.jsp?data=" + jcrypto(message));
  
      //opens the url on external browser
      Windows.System.Launcher.launchUriAsync(uri).done(
          function (success) {
              if (success) { console.log("page opened correctly"); }
              else { console.log("an error has occured"); }
              });
  </code></pre>