johnpapa/HotTowel-Angular

the views path are absolute and will return 404 if the app is served from a subdirectory of the domain

Opened this issue · 2 comments

the views path are absolute and will return 404 if the app is served from a subdirectory of the domain

I fixed it locally, I will fork and submit the fix here.

That way I believe the paths are relative to the index.html, not to the root of the domain. at least this works for me.
I just referenced the issue in my commit, do I also need to submit a pull request or you can grab it from here?

Some people also use the base tag in the head of the html, but that would be for links that are inserted directly in the html and not processed by angular. (like the ../../Content/.png)