How to build a url with query parameters in Angularjs.
I see the API $location.search()
the problem is $location(url) is to redirect to the url. In my case,
angular's internal and external URL formatting rules are slightly different.
The $location is a means of activating internal routes within your own application.
If it is an external link then $http is what you want.
If it is an internal link, then check it might be worth checking the hash/bang syntax.