title: Angular4 router event NavigationEnd stopped navigation in Firefox
body: <p>In a component, I am subscribing to router event 'NavigationEnd' in 'ngOnInit' as below:</p>
  
  <pre><code>public ngOnInit(): void {
  this.router.events
    .filter((e: {}) =&gt; e instanceof NavigationEnd)
    .subscribe((event: {}) =&gt; {           
      this.myFunction();
    });
  }
  </code></pre>
  
  <p>Along with above code I am using router.navigate([link]) in another component as below:</p>
  
  <pre><code>constructor(private router: Router) {}
  
  public navigateToLink = (link: string): void =&gt; {
   this.router.navigate([link]);
  }
  </code></pre>
  
  <p>It is working fine in Chrome, but, navigation is not working at all in Firefox, after commenting router event subscription code, router navigation start working in Firefox.
  Please guide me what is wrong in my code.</p>