title: path broke when uploaded to server (link from js to html)
body: <p>I programmed a webside and a bunch of it broke when I uploaded it onto the server (until now I only ever programmed locally and not very often at that)
  I fixed nearly everything but the links between pages.</p>
  <p>What works is the &quot;a&quot; element in html to link but most of my pages are linking to oneanother in their js code.</p>
  <p>I put all files on the same directory, after trying some path variants (I tried the URL too), so there would be no path and it still didn't work.
  I have to assume that &quot;window.location.pathname = &quot;result.html&quot; is not the right way.</p>
  <p>In Vsc, with the live server, it works, but not on the real one</p>