title: How to use Querystring with $location.path() in AngularJS
body: <p>I want to redirect user to another page after successful login using query string. If I copy &amp; paste to browser's address bar <code>http://example.com/#/login?ref=/path/to/redirect</code> it works fine. But if I use</p>
  
  <pre><code>$location.path("/login?ref=/path/to/redirect");
  </code></pre>
  
  <p>url looks like</p>
  
  <pre><code>http://example.com/#/login%3Fref=/path/to/redirect
  </code></pre>
  
  <p>How can I decode %3F to '?' ?
  Thanks</p>