Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3389

StatusCode parameter in the URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.1.8.1
    • 2.3.14
    • None
    • None

    Description

      I have a redirect result configuration where I change the statusCode:

      <result name="permanentRedirect" type="redirect">
        <param name="location">${redirectUrl}</param>
        <param name="statusCode">301</param>
        <param name="prependServletContext">false</param>
      </result>
      

      When the redirect occurs, it appends a statusCode parameter on the URL, like this: http://domain.com/path?statusCode=301

      It was working correctly on version 2.0.6, with no statusCode in the URL

      Attachments

        Issue Links

          Activity

            People

              lukaszlenart Lukasz Lenart
              greis Gabriel
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: