title: location.go() is not redirecting the user in angular 2
body: <p>I'm making login check. Once that is the success, I want to redirect the user to another page in the same application. I have below code to do that.</p>
  
  <pre><code>import { Component } from '@angular/core';
  import { FormGroup, FormControl, Validators, FormBuilder } from '@angular/forms';
  import { DataService } from '../services/data.service';
  import {Location, LocationStrategy, PathLocationStrategy} from '@angular/common';
  
  @Component({
    selector: 'app-login',
    templateUrl: './login.component.html',
     providers: [Location, {provide: LocationStrategy, useClass: PathLocationStrategy}],
    styleUrls: ['./login.component.css'],
  
  })
  export class LoginComponent   {
  
  static location:Location;
  
    constructor(private formBuilder: FormBuilder,
                private dataService: DataService,location: Location) {
                  LoginComponent.location = location;
  
        this.loginForm = this.formBuilder.group({
        username: this.username,
        password: this.password
      });
    }
  
    loginForm : FormGroup;
    username = new FormControl('', Validators.required);
    password = new FormControl('', Validators.required);
  
  Login(){
  
    this.dataService.doLogin(this.loginForm.value.username,this.loginForm.value.password).subscribe(function(res){
         console.log(LoginComponent.location)
         LoginComponent.location.go('/report');
       },function(err){
          console.log("Err",err)
        });;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>But the issue is, URL in browser changed to <a href="http://localhost:3000/report" rel="noreferrer">http://localhost:3000/report</a>. But when the page is not loading. When I hit reload, then the new page is getting displayed.</p>
  
  <p>What is wrong in this code? <code>location.go()</code> won't load the URL.</p>