title: I am getting "404 - File or Directory Not Found" Any ideas how to resolve this?
body: <p>I am trying to use this JavaScript below to attempt to open a file when invoked.</p>
  
  <pre><code>function openFile() {
      document.getElementById("advanceSearchFrame").src = location.pathname.replace(/\/[^/]+$/, "") + "/Profiles/Options.php";
      dijit.byId("advanceSearchDialog").show();
  
  }
  </code></pre>
  
  <p>This JS is in a folder call Scripts.</p>
  
  <p>This scripts folder is inside a folder called Profiles.</p>
  
  <p>The file that I am trying to open called Options.php is also inside the Profiles folder.</p>
  
  <p>When I click the Options folder, I get "404 -  File or Directory Not Found"</p>
  
  <p>What do I need to change to fix the code above?</p>