Details
-
Improvement
-
Status: Closed
-
Normal
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Turing
-
Turing Sprint 170, Turing Sprint 171
Description
Due to the pattern matching of resourcePaths, a resource path must end with a resource. A resource consists of a name part, and a suffix (e.g. html or jpeg) separated by a dot.
This causes a problem for live reloading, because then a request is done on the root path. Since the convention for java servlets is that requesting a root path automatically redirects to index.html (or whatever it is mapped to in the welcome-file-list).
As far as I know, CMS applications (including angular app) always map / to index.html. So, when a resourcePath does not end with a dot followed by a suffix we can assume it is a request for index.html. Change the ResourceServlet so that it allows for requesting / by mapping it to index.html.