Vinay | Real fix for the controller. Use $location instead of $route.

$route is available to anyone who is inside a $ngview. It is $ngView that creates
the $route and $routeProvider objects. Using $route outside it is error prone.
All we need is the redirect-url parameter. This can be obtained from $location.