Uploaded image for project: '[Read Only] - Hippo Site Toolkit 2'
  1. [Read Only] - Hippo Site Toolkit 2
  2. HSTTWO-954

Unable to redirect to external URL from doAction method

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • 2.04.02
    • 2.04.03
    • None
    • None

    Description

      It's currently not possible to redirect to an external URL (e.g. starting with 'http://') from the doAction:
      response.sendRedirect(externalURL);

      The following message will be shown: "Can only redirect to an absolute path starting with a '/'"

      Probably it has to do with the following in 'org.hippoecm.hst.core.container.ActionValve':

      ...
      if (!requestContext.isPortletContext()) {
      responseState.flush();
      if(!responseState.getRedirectLocation().startsWith("/"))

      { throw new ContainerException("Can only redirect to an absolute path starting with a '/'"); }

      ...

      Attachments

        Activity

          People

            wko Woonsan Ko (Inactive)
            dvandiepen Dirkjan van Diepen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: