title: Angular 5 fix relative path for Assets/ folder
body: <p>I am  working on an Angular 5 app, I am hosting it on a Apache2.4 http server redirecting it with a proxy module on <code>http://localhost:7777/test/</code></p>
  
  <p>My first issue was when calling a service from the browser, it was using <code>http://localhost:7777/</code> as base URL, quickly resolved by removing the slash from my test service, <code>/service1/upload</code> to <code>service1/upload</code>.
  So I went from <code>http://localhost:7777/service1/upload</code> to <code>http://localhost:7777/test/service1/upload</code>.</p>
  
  <p>Now I am having an other unfixed issue with an <code>image.png</code> from the Assets/ folder, it keeps trying to get it from <code>http://localhost:7777/assets/image.png</code> instead of <code>http://localhost:7777/test/assets/image.png</code></p>
  
  <p>I tested the second URL, it returns my image as asked. How can I make Angular 5 to find my assets path relatively? In my case having a call on <code>http://localhost:7777/test/assets/image.png</code></p>
  
  <p>Here's how I access to the image in HTML : </p>
  
  <pre><code>..
  &lt;img  src='assets/stop_pic.PNG' &gt; 
  ..
  </code></pre>
  
  <p>My base href in my index.html : </p>
  
  <pre><code>&lt;base href=""&gt;
  </code></pre>
  
  <p>My angular-cli.json conf : </p>
  
  <pre><code>...    
  apps": [
          {
            "root": "src",
            "outDir": "../src/main/resources/static",
            "assets": [
              "assets"
            ],
            "index": "index.html",
            "main": "main.ts",
            "polyfills": "polyfills.ts",
            "test": "test.ts",
            "tsconfig": "tsconfig.app.json",
            "testTsconfig": "tsconfig.spec.json",
            "prefix": "app",
            "styles": [
              "styles.css"
            ],
            "scripts": [],
            "environmentSource": "environments/environment.ts",
            "environments": {
              "dev": "environments/environment.ts",
              "prod": "environments/environment.prod.ts"
            }
          }
        ],
      ...
  </code></pre>