2 Replies Latest reply on Dec 30, 2016 10:51 AM by ImFailer

    Is there a way to use base href /?

    ImFailer

      I wrote an Angular2 application.

      It works great in browser (using phonegap desktop app).

      However, on an android device, it doesn't work.

      The errors are: 404 error for JS files.

       

      This is because of a piece of code angular2 creates an index file with "<base href="/">", which is a must.

       

      Removing it, makes angular fail.

      Changing it to "", works for all of the local assets, but not remote files, or local files when in a url with a slash (like "user/1")

       

      Is there a way to make base href / work?