title: Angular 2 router attaches question mark in URL
body: <p>I am facing a strange issue in my Angular 4 project. I am trying to navigate to a path through code (on button click). I am using <code>router.navigate()</code> method as follows to accomplish the job --</p>
  
  <pre><code>this._router.navigate(["/employeeDetails", selectedEmployee.EmployeeId]);
  </code></pre>
  
  <p>Where <code>selectedEmployee.EmployeeId</code> is a number.
  The navigation happens but I am getting a very weird thing in the URL. Initially the URL shows as follows --
  <code>http://localhost:4200/?employeeDetails/170</code> and then the <code>?</code> sign vanishes from the URL and the required page is loaded. </p>
  
  <p>Can anyone please tell me why the <code>?</code> sign is coming in the URL. Ideally it should load the respective component for the route <code>"/employeeDetails"</code> without refreshing the page. I also tried the code without <code>/</code> as follows but no help.</p>
  
  <pre><code>this._router.navigate(["/employeeDetails", selectedEmployee.EmployeeId]);
  </code></pre>
  
  <p>Any help would be appreciated.</p>