I'm trying to redirect the user using this line:
$location.path('/edit?a='+$scope.a+'&b='+$scope.b);
But, doing this, I just get a new url putted into the url bar of the browser without redirection and the url contains
localhost/dashboard/public/kol#/edit%3Fa=undefined&b=undefined
instead of
localhost/dashboard/public/edit%3Fa=undefined&b=undefined
How to deal with this please?
$locationare what you need to read. They explain how to do both internal app redirects as well as outside of app