title: Is there a built-in way to get the current URL without any query parameters?
body: <p>If my URL is <code>http://www.something.com/foo/bar/index.html?color=yellow&amp;animal=rat</code>, it seems as though:</p>
  
  <ul>
  <li><code>$location.path()</code> will return <code>foo/bar/index.html</code></li>
  <li><code>$location.absUrl()</code> will return <code>http://www.something.com/foo/bar/index.html?color=yellow&amp;animal=rat</code></li>
  <li><code>$location.url()</code> will return <code>foo/bar/index.html?color=yellow&amp;animal=rat</code></li>
  </ul>
  
  <p>Is there any function which will return <code>http://www.something.com/foo/bar/index.html</code>?</p>
  
  <p>Or do I have to construct that myself with functions like protcol, host, port, etc. (or strip the query params off myself)?</p>