Js window location relative url
<p>I am using the window location method to redirect a webpage to another after a set amount of time. </p>

<p>The url needs to change from www.myurl.com/home to www.myurl.com/other. The problem is that i do not know what the final url's will be so i cannot use absolute links, they have to be relative. This is what i have so far:</p>

<pre><code>    window.addEvent('domready', function() {
    if (location.hash === ''){
        setTimeout('window.location.pathname = "mobility.html"', 4000); 
        }
    });
</code></pre>
