Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-8742

Allow overriding the extension when using the RequestDispatcher

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • API 2.24.0, Engine 2.8.0
    • API, Engine
    • None

    Description

      It is sometimes useful to be able to include another resource and override the extension at the same time.

      My scenario is that I am routing all requests through an entry point /content/maven.html and then serving resources based on the suffix.

      If I a binary file is requested, it should be downloaded ( by forcing the extension to be null ), but instead the html extension is used, which means the HTML Renderer kicks in.

      Attachments

        Issue Links

          Activity

            People

              cziegeler Carsten Ziegeler
              rombert Robert Munteanu
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m