Simple way to change current URL
<p>I am trying to find a simpler way to change 2 variables on the current url without having to split the url and re-building it.</p>

<p>for example if i have a url <code>http://www.anysite.com/any/12/this/url/10/20</code> and want to change the last to variables <code>10</code> and <code>20</code> to <code>20</code> and <code>30</code> for example is there are simpler way than using <code>window.location.href.split("/")</code> then having to re-build the whole url?    </p>
