I'm building an Angular 2 application and I'm using html5 routing.
I stumbled across a problem with nested routes. The problem is that when I have /route1 defined, it works fine but in case of /route1/child-route, it is not working.
I use browserSync for serving the files and I use middleware to redirect to index.html. So far I have seen that the problem is with compiled TypeScript files and SystemJS that uses relative urls and for example when app.js is requested, the server is looking for the file in location /route1/app.js. Can anybody help me resolve this problem?