I want to redirect user to another page after successful login using query string. If I copy & paste to browser's address bar http://example.com/#/login?ref=/path/to/redirect it works fine. But if I use
$location.path("/login?ref=/path/to/redirect");
url looks like
http://example.com/#/login%3Fref=/path/to/redirect
How can I decode %3F to '?' ? Thanks
$routeParamsand create a route that looks like this:/login/:refand thenrefwould be a parameter in the$routeParamsservice. docs.angularjs.org/api/ngRoute/service/$routeParams