title: How to get url without page
body: <p>I want to get url without page. Please see it below.</p>
  
  <p>current url</p>
  
  <pre><code>http://localhost/FolderPath/Page.html
  </code></pre>
  
  <p>want to get </p>
  
  <pre><code>http://localhost/FolderPath/
  </code></pre>
  
  <p>How can I do this? Thanks.</p>