title: Why does ng serve result in 404 error for JS files?
body: <p><strong>Background</strong>: I have an Angular site that uses multiple languages</p>
  
  <p><em>Default</em>: /desktop/</p>
  
  <p><em>English</em>: /en/</p>
  
  <p><em>Spanish</em>: /es/</p>
  
  <p><strong>Problem</strong>:I am unable to load certain javascript files for the /en/ or /es/ , but they load fine when running it on /desktop/ (I used the following SO article to get to this point: <a href="https://stackoverflow.com/questions/22317206/failed-to-load-resource-the-server-responded-with-a-status-of-404-not-found">Failed to Load</a>. I have also viewed: <a href="https://stackoverflow.com/questions/51182322/whats-the-difference-between-base-href-and-deploy-url-parameters-of-angular">this thread</a>. This seems different as it is not just one site configuration pointing to the wrong folder, I have multiple sites(languages)</p>
  
  <p><strong>Details</strong>: My "desktop" batch file has the following:</p>
  
  <pre><code>cd program-Desktop
  call ng serve --base-href "/desktop/" --deploy-url "/desktop" --configuration=local-en
  </code></pre>
  
  <p>For the "en" site batch file, I have tried:</p>
  
  <pre><code>call ng serve --base-href "/en/" --deploy-url "/desktop" --configuration=local-en
  </code></pre>
  
  <p>and</p>
  
  <pre><code>call ng serve --base-href "/en/" --deploy-url "/en" --configuration=local-en
  </code></pre>
  
  <p><strong>Actual Result</strong>: However I still get errors like: </p>
  
  <p>GET <a href="http://localhost:4200/desktop/assets/js/Scripts/jquery-2.1.1.js" rel="nofollow noreferrer">http://localhost:4200/desktop/assets/js/Scripts/jquery-2.1.1.js</a> </p>
  
  <blockquote>
    <p>net::ERR_ABORTED 404 (Not Found)</p>
  </blockquote>
  
  <p><strong>Note</strong>: <em>This works fine in REL &amp; PROD. But having trouble in LOCAL</em></p>
  
  <p><strong>Question</strong>: I'm not sure why it's still looking in /desktop when I told it /en.
  If I go to the address at /en/ I can see the js file there, so why is it still looking for it in /desktop?</p>