title: Router Events failing some functionality on page refresh
body: <p>I would like to show Hamberger(Menu Icon) in all pages except home page.And the code is:</p>
  
  <pre><code>constructor( private router: Router){
      this.router.events
         .subscribe((event) =&gt; {    
      let _url = window.location.href, urlArr: any;
      console.log(_url);
      urlArr = _url.split('/').indexOf('home');
      this._showHamburger = (urlArr &lt; 0) ? true : false;
    });
  }
  </code></pre>
  
  <p>The above code works fine if we navigate from any page to current page(It seems we must navigate from somewhere). But on page refresh the above functionality fails. Any thing I need to add up ??</p>