Remove querystring from URL
<p>What is an easy way to remove the querystring from a Path in Javascript?
I have seen a plugin for Jquery that uses window.location.search. I can not do that: The URL in my case is a variable that is set from AJAX.</p>

<pre><code>var testURL = '/Products/List?SortDirection=dsc&amp;Sort=price&amp;Page=3&amp;Page2=3&amp;SortOrder=dsc'
</code></pre>
