title: Handle multiple redirects angular route
body: <p>Basically, we had two routes:</p>
  
  <ol>
  <li><code>/homepage</code></li>
  <li><code>'/user/oldLogin'</code></li>
  </ol>
  
  <p>Previously, if no route used to match, then the user was redirected to <code>/homepage</code>, and if the user tried to access a protected route without login, then he was redirected to <code>/user/oldLogin</code> .</p>
  
  <p>Now, what I want is a new route that is <code>/user/Login</code> to handle purposes of both route <code>/homepage</code> and route <code>/user/oldLogin</code>.
  So for all routes, if user is not authenticated , he should be redirected to <code>/user/login</code>.</p>
  
  <p>And this is my code:</p>
  
  <pre><code>    { path: '', redirectTo: 'hompage', pathMatch: 'full'},
    //redirect from hompage to login
    { path: '/homepage', redirectTo: '/user/oldLogin', pathMatch: 'full'},
    //redirect login to real login
    { path: 'user/oldLogin', redirectTo: '/user/login', pathMatch: 'full'},
    //note that redirects will always be on top
    { path: 'hompage', component: LandingComponent },
  </code></pre>
  
  <p>But what happens is that one redirection takes place. If user is on any unmatched route then he is redirected to <code>\homepage</code> .If user is on <code>/homepage</code> , then he is redirected to <code>/user/oldLogin</code> . And if user is on <code>/user/oldLogin</code>, only then he is redirected to <code>\user\login</code>. </p>
  
  <p>Am I doing something wrong?</p>