Hi devs,
HttpServletResponse#sendRedirect() accepts relative URLs. Do you know
or remember why we explicitly generate absolute URLs in
Utils#getRedirect() which is used in lots of places in old core to get
the redirect URL. There is no comment to explain why we treat redirect
URLs different than the rest of the URLs we generate (which are
relative).
I would like to change Utils#getRedirect() to generate URLs relative
to the servlet container root as it should. Here's the change
https://github.com/xwiki/xwiki-platform/commit/029ece1585ad03fd6402c12446be…
(on an old branch).
Thanks,
Marius