title: How do I set window.location to a specific path (without a host)?
body: <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 URLs will be so I cannot use absolute links, they have to be a path only. This is what I have so far:</p>
  
  <pre><code> window.location.pathname = "mobility.html"
  </code></pre>