title: How to redirect to a route on ngOnit?
body: <p>I am trying to redirect to a route when user directly paste the url.</p>
  
  <p>I want to direct the user to /en/sell page on hitting the url </p>
  
  <p><strong><code>http://localhost:3000/en/sell/confirmation</code></strong></p>
  
  <p>here is my code,</p>
  
  <pre><code>  ngOnInit() { 
      this.storedListing = this.sellerFlow.getSellerFlowObject(); 
      if (this.storedListing === null) {
        this.router.navigate(['./']);
      }
    }
  </code></pre>
  
  <p>i can see this.router getting executed but the application does not have any change. what is the issue?</p>