title: Angular base href not showing up in URL
body: <p>I am trying to deploy my angular application to a production environment that has an additional location step in url e.g. www.production-server.com/name-of-my-app appended to it.</p>
  
  <p>My application works just fine when I run it through angular cli on localhost:4200 and redirects through pages like it is supposed to for example from localhost:4200/page1 to localhost:4200/page2.</p>
  
  <p>But when I try to set the base href </p>
  
  <pre><code> "architect": {
          "build": {
            "builder": "@angular-devkit/build-angular:browser",
            "options": {
              "baseHref" : "/name-of-my-app/",
              "outputPath": "dist",
              "index": "src/index.html",
  ...
  </code></pre>
  
  <p>and configure my Routes like this:</p>
  
  <pre><code>const routes: Routes = [
    Route.withShell([
      {path: '', redirectTo: '/sredstva', pathMatch: 'full'},
      {path: 'sredstva', component: OsebnasredstvaComponent, data: {title: extract('Osebna sredstva')}}
    ])
  ];
  
  
  /**
   * Provides helper methods to create routes.
   */
  export class Route {
  
    /**
     * Creates routes using the shell component and authentication.
     * @param routes The routes to add.
     * @return {Route} The new route using shell as the base.
     */
    static withShell(routes: Routes): ngRoute {
      return {
        path: '',
        component: ShellComponent,
        children: routes,
        canActivate: [AuthenticationGuard],
        // Reuse ShellComponent instance when navigating between child views
        data: { reuse: true }
      };
    }
  
  }
  </code></pre>
  
  <p>The application still routs localhost:4200/page1 to page localhost:4200/page2 instead of localhost:4200/name-of-my-app/page1 and localhost:4200/name-of-my-app/page2. Why is that?</p>
  
  <p>EDIT: I would like to add that the base href is showing up correctly when I inspect the page. But it doesn't show up in the URL.</p>
  
  <p><a href="https://i.stack.imgur.com/dVXMF.jpg" rel="nofollow noreferrer">As seen on this picture</a></p>