[
https://issues.apache.org/jira/browse/SLING-3374?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14341815#comment-14341815
]
Justin Edelson commented on SLING-3374:
---------------------------------------
[~lbyrum] [~niseth] Please refer to
http://docs.oracle.com/javaee/6/api/javax/servlet/http/HttpServletResponse.html#sendRedirect%28java.lang.String%29.
As you can see there, the specified behavior of the sendRedirect() method is
that "the servlet container must convert the relative URL to an absolute URL
before sending the response to the client".
Since Sling does not implement this method and simply passes it through to the
servlet container, any variance in how this method behaves is not Sling's
domain.
> Overlay sendRedirect to set relative Location header
> ----------------------------------------------------
>
> Key: SLING-3374
> URL: https://issues.apache.org/jira/browse/SLING-3374
> Project: Sling
> Issue Type: Bug
> Reporter: Laurie byrum
>
> Recently, Location headers returned from redirects started being absolute
> instead of relative.
> We should try to decorate this in sling.
> Can we replace the sendRedirect with a set-header set-status combination
> in sling?
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)