title: Navigating to the current route in Angular 2?
body: <p>I am trying to reload the current page in Angular.</p>
  
  <p>So when I reload the page, my root component is called and this line is executed:</p>
  
  <pre><code>console.log(this.router.routerState.snapshot.url)
  </code></pre>
  
  <p>which prints "/component-x"</p>
  
  <p>and then I execute this line of code:</p>
  
  <pre><code>this.router.navigate(['/component-x]')
  </code></pre>
  
  <p>And it does not work and I am logged out of my application.</p>
  
  <p>Is navigating to the current route in Angular supported?
  And how else can I achieve reloading the current page?</p>
  
  <p>Note my application is being hosted on Cloudfront on AWS, and I have rule set up that returns index.html when there is 404 error (i.e. when a page refresh occurs), and I have followed this guide around reloading the current route in Angular: <a href="https://medium.com/engineering-on-the-incline/reloading-current-route-on-click-angular-5-1a1bfc740ab2" rel="nofollow noreferrer">https://medium.com/engineering-on-the-incline/reloading-current-route-on-click-angular-5-1a1bfc740ab2</a></p>
  
  <p>But it is still not working. Can somebody please point out what I am missing?</p>
  
  <p>Thanks!</p>