title: Angular 2 redirect in Interceptor Error
body: <p>I have written this intercept method:</p>
  
  <pre><code>intercept(req: HttpRequest&lt;any&gt;, next: HttpHandler): Observable&lt;HttpEvent&lt;any&gt;&gt; {
  return next.handle(req).do(event =&gt; {
    console.log('EVENT:', event);
  }, (err: HttpErrorResponse) =&gt; {
    const message = err.error.message;
    if (message == 'You need to activate your account!') {
      // TODO: Redirect to '/auth/not-activated'
    }
  });
  }
  </code></pre>
  
  <p>If I receive from server specific error message, I need to redirect user to address /auth/not activated</p>
  
  <p>How can I achieve that? </p>
  
  <p>I have already tried</p>
  
  <pre><code>this.router.navigateByUrl(url);
  </code></pre>
  
  <p>but this is not working.</p>