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

Predicate Language Redirect handler doesn't allow custom status code

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • 2.1.3.Final
    • Core, Predicate Language
    • None
    • Documentation (Ref Guide, User Guide, etc.)

      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)
      

       

       

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

                Created:
                Updated: