Open SimplyGed opened 8 years ago
I have noticed that when doing a page refresh for an Angular2 app with a route that is deeper than one path e.g. http://localhost:3000/customer/detail
the CSS files are not loaded. The developer tools indicate that the server is attempting to load them from the child path, instead of from the root path i.e. server uses path: http://localhost:3000/customer/detail/styles.css but the correct path should be: http://localhost:3000/styles.css
I have attached a zip file containing a small Angular2 app that exhibits the behaviour.
lite-server
nodejs
npm
I have noticed that when doing a page refresh for an Angular2 app with a route that is deeper than one path e.g. http://localhost:3000/customer/detail
the CSS files are not loaded. The developer tools indicate that the server is attempting to load them from the child path, instead of from the root path i.e. server uses path: http://localhost:3000/customer/detail/styles.css but the correct path should be: http://localhost:3000/styles.css
I have attached a zip file containing a small Angular2 app that exhibits the behaviour.
Repro steps
Environment
lite-server
version: 222nodejs
version: 4.4.7npm
version: 3.4.0