how to use WinJS.Navigation.navigate
<p>I'm sorry if my question may appear stupid, but I want to ask if someone know how to use WinJS.Navigation.navigate() option.</p>

<p>I'm trying to utilize it in my code but the page is not being redirected. I can't understand what is the matter.</p>

<pre><code>WL.Event.subscribe("auth.sessionChange",
    function (e) {
        if (e.session) {
            displayMe();
            authLogin();
        }
        else {
            clearMe();
        }
    }
);

function authLogin(e) {
    if (e.status == 'connected') {
        WL.Event.unsubscribe("auth.login", authLogin);
        WinJS.Navigation.navigate('files.html');
    }

}

WL.init({ client_id: cl_id, redirect_uri: red_uri, response_type: "code" });
</code></pre>

<p>I've tried to check if <code>e.status</code> is really <code>connected</code> and it's really true because when I refresh page manually the page is being populated by the return of api. </p>

<p>the problem is in navigation page. I tried to bruteforce it by adding <code>location.reload</code> but it also doesn't work;</p>

<pre><code>function authLogin(e) {
    if (e.status == 'connected') {
        WL.Event.unsubscribe("auth.login", authLogin);
        WinJS.Navigation.navigate('files.html');
        location.reload();
    }
</code></pre>

<p>Can anybody give me a hint on what am I doing wrong? because i am at a loss.</p>
