Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-1734

Predicate Language Redirect handler doesn't allow custom status code

    Details

    • Type: Feature Request
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 2.1.3.Final
    • Fix Version/s: None
    • Component/s: Core, Predicate Language
    • Labels:
      None
    • Affects:
      Documentation (Ref Guide, User Guide, etc.)

      Description

      Using the predicate language with the redirect() handler does not provide a way to control whether a 302 or 301 redirect is issued.  The handler is hard coded to use a 302. 

      path('/a') -> redirect('/b')
      

      The response-code() handler can presumably be used in concert with the redirect handler, but it would be much simpler to allow something like this instead: 

      path('/a') -> redirect(value='/b',status=301)
      

       

       

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                flavia.rainone Flavia Rainone
                Reporter:
                bdw429s Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: