Path LocationStrategy breaks assets retrieval

Hello everyone,

I’m trying to setup my Ionic 2 application to use the path location strategy since this app will be run on both mobile devices as well as on the browser.
The path location works fine for the most part (assuming that somehow you are able to crawl through enough issues to find all the right answers) but at least on the mobile phone there is something that doesn’t work as expected.

By setting the APP_BASE_HOST provider and the locationStrategy: 'path' on my app I can navigate just fine but all requests to icons fails with a 404.
It goes something like this:
file:///assets/image1.png throws a 404, and everything, at least, inside this folder does too.

How can I overcome this?

1 Like