title: Window.location with variable path not working
body: <p>This script gets the selection from a <em>comboBox</em>, and uses the selected values both to redirect to a specific path and to open a selected webpage.</p>
  
  <pre><code>function redirect(){
  var obj = document.getElementById("cat");  // 
  var obj2= document.getElementById("sub1");
  var obj3= document.getElementById("sub2");
  var redir2=obj2.options[obj2.selectedIndex].text.substring(0,4); 
  var redir =obj.options[obj.selectedIndex].text.substring(0,4); //
  var redir3 =obj3.options[obj3.selectedIndex].text.replace(/ /g,"_");    
  
  var url= redir+"/"+redir2+"/"+redir3+".php";
  url=url.toLowerCase();
  
  alert(url);
  
  window.location.href = "np/categories/"+url;}
  </code></pre>
  
  <p>For some particular reason, while monitoring the log on firefox, sometimes it runs the path, sometimes it doesn't.</p>
  
  <p>Either way, <strong>it never loads the page selected</strong>. (both testing path and page exist). Sometimes I get the green light on mozilla network console status, like this</p>
  
  <p>GET
  <a href="http://localhost/np/cat/auto/serv/testingpage.php" rel="nofollow noreferrer">http://localhost/np/cat/auto/serv/testingpage.php</a>    [HTTP/1.1 200 OK 0 ms]</p>
  
  <p>It never really loads the page. <strong>How can i fix this ?</strong></p>