Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-11014

ResourceServlet should allow requests for root resources

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Fix
    • None
    • utilities-4.2.0
    • 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.

       

      Attachments

        Activity

          People

            Unassigned Unassigned
            meggermont Michiel Eggermont (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: