Cocoon
  1. Cocoon
  2. COCOON-2321

Unable to permanently redirect the client (eg. with an HTTP code 301) from inside a cocoon:// redirection

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.11
    • Fix Version/s: 2.1.12
    • Component/s: * Cocoon Core
    • Labels:
      None

      Description

      When inside a internal (cocoon://) redirection, the actual Environment is wrapped inside an EnvironmentWrapper which does not implement PermanentRedirector, so all redirections go through the redirect() method, which finally ends up in the redirect() method of the actual Environment, which issues a 302 status code in the case of the HttpEnvironment

      I propose to make EnvironmentWrapper implement PermanentRedirector and handle this case in the Cocoon core, to be able to also issue 301 HTTP responses.

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Cédric Damioli
            Reporter:
            Cédric Damioli
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development