title: Unable to redirect to another page using angular js
body: <p><br/>
  I am trying to redirect to another page on successful login, but instead of redirecting to another page, I am getting redirected to the default page which is: </p>
  
  <pre><code>.otherwise({
          redirectTo: '/home'
      })
  </code></pre>
  
  <p>`.</p>
  
  <p><strong>Angular code:</strong></p>
  
  <pre><code>if(res.status == 200){
              console.log($scope.user);
              alert('Login successfull');
              $location.path('http://localhost:3000/#!/products/add-mew-product');
          }
  </code></pre>
  
  <p>Why this is happening, please help.</p>