title: angularjs reload page but setting new URL
body: <p>Hi im trying to use <code>$window.location.reload()</code> but i need to use a new URL so this URL have the <code>routeParams</code> that a service use.</p>
  
  <p>here is my piece of code:</p>
  
  <pre><code> $window.location.href += "/" + $scope.var1 + "/" + $scope.var2;
   $window.location.reload(true);
  </code></pre>
  
  <p>the thing with this approach is that the url change but when reload it set it to the default route of my app taking out the href i set.</p>