title: AngularJs getting the url from which redirected to current
body: <p>Is there a way to get from which url we are redirected to current in AngularJs. I m writing a generic login. So I want to redirect to the the page from which I was directed to Login as soon as logged in successfully. In order to do that I want to get the Url from which I was redirected to here(Current/MyLogin) inside my controller.I have injected $location to my controller. Any one can help me?</p>