Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Servlets Get 2.0.6
-
None
Description
The current redirect servlet has two problems:
- it always creates a relative redirect - this fails if the current request just targets the webapp context without a trailing slash - for example if the Sling web app is mounted at /a and "/a" is request, a redirect to "/index.html" is modified to a relative redirect "index.html" - which results in a redict to "/index.html" and not "/a/index.html"
- the creation of the relative path uses the current resource of the request to create the path. However this path might not resemble the request path (due to mapping etc.) which might result in a wrong relative redirect.