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

Predicate Language Redirect handler doesn't allow custom status code

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • None
    • 2.1.3.Final
    • Core, Predicate Language
    • None
    • 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)
      

       

       

      Attachments

        Activity

          People

            bdw429s Brad Wood
            bdw429s Brad Wood
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: