title: Angular2: strange routing issue where url doesn't get updated and route doesn't stay persistent when the page gets reloaded
body: <p>I am working on a angular2 web app.  I already have a few routes setup that all work as expected.  I recently added a Goods Received view and i'm running into a very strange error...  I added the path and component to my app.routing.ts and added a router link to my navigation Component (which is a bootstrap navbar...)   When I run my app the goods received link is displayed in the navbar and when I click on it the router navigates to the view but the link isn't displayed in the addressbar and reloading the page returns me to the previous view I was on...  Any idea what could be causing this?</p>
  
  <p>my code:</p>
  
  <p>app.routing.ts:</p>
  
  <pre><code>import {NgModule } from '@angular/core';
  import { RouterModule, Routes } from '@angular/router';
  
  import { HomeComponent } from './Components/home/home.component';
  import { CheckBarcodesComponent } from './Components/check-barcodes/check-barcodes.component';
  import { SettingsComponent } from './Components/settings/settings.component';
  import { StockTakeComponent } from './Components/stock-take/stock-take.component';
  import { GoodsReceivedComponent } from './components/goods-received/goods-received.component';
  
  const appRoutes : Routes = [
  {path: "goodsReceived", component: GoodsReceivedComponent },
  {path: "settings", component: SettingsComponent },
      {path: "checkBarcodes", component: CheckBarcodesComponent },
      {path: "home", component: HomeComponent},
      {path: "", redirectTo: 'home', pathMatch: 'full'},
      {path: "stockTake", component: StockTakeComponent}  
  ];
  
  @NgModule({
      imports: [RouterModule.forRoot(appRoutes)],
      exports: [RouterModule]
  })
  export class AppRoutingModule {}
  </code></pre>
  
  <p>navigation-component.html:</p>
  
  <pre><code>&lt;nav class="navbar navbar-default"&gt;
  &lt;nav class="navbar navbar-default navbar-static-top"&gt;
  &lt;div class="container-fluid"&gt;
      &lt;div class="navbar-header"&gt;
          &lt;button class="navbar-toggle navbar-toggle-right" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria="navbarSupportedContent"
  aria-expanded="false" aria-label="toggle navigation"&gt;&lt;span class="icon-bar"&gt;&lt;/span&gt;&lt;span class="icon-bar"&gt;&lt;/span&gt;&lt;span class="icon-bar"&gt;&lt;/span&gt;&lt;/button&gt;
      &lt;/div&gt;
      &lt;a class="navbar-brand" href="#"&gt;&lt;img class="logo" src="../../../assets/pictures/TMNewLogo.gif" style="height:100px; width:200px; text-align:center;"&gt;&lt;p class="navbar-text"&gt;Retail Mobile&lt;/p&gt;&lt;/a&gt;
  
      &lt;div class="collapse navbar-collapse" id="navbarSupportedContent"&gt;
          &lt;ul class="nav navbar-nav"&gt;
              &lt;li [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact:true}" class="nav-item"&gt;&lt;a [routerLink]="['home']"&gt;&lt;span class="glyphicon
  glyphicon-home"&gt;&lt;/span&gt; Home&lt;/a&gt;&lt;/li&gt;
              &lt;li [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact:true}" class="nav-item"&gt;&lt;a [routerLink]="['checkBarcodes']"&gt;&lt;span class="glyphicon
  glyphicon-barcode"&gt;&lt;/span&gt; Check Barcodes&lt;/a&gt;&lt;/li&gt;
              &lt;li [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact:true}" class="nav-item"&gt;&lt;a [routerLink]="['stockTake']"&gt;&lt;span class="glyphicon
  glyphicon-folder-open"&gt;&lt;/span&gt; Stock Take&lt;/a&gt;&lt;/li&gt;
  &lt;li [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact:true}" class="nav-item"&gt;&lt;a [routerLink]="['goodsReceived']"&gt;&lt;span class="glyphicon
  glyphicon-list"&gt;&lt;/span&gt; Goods Received&lt;/a&gt;&lt;/li&gt;
  
              &lt;li [routerLinkActive]="['active']" [routerLinkActiveOptions]="{exact:true}" class="nav-item"&gt;&lt;a [routerLink]="['settings']"&gt;&lt;span class="glyphicon
  glyphicon-wrench"&gt;&lt;/span&gt; Settings&lt;/a&gt;&lt;/li&gt;
          &lt;/ul&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  &lt;/nav&gt;
  </code></pre>