Description
Consider the following code that wants to redirect to a non-absolute URL containing query parameters:
String cssLink1="http://yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css" return Response.temporaryRedirect(UriBuilder.fromPath("whatever/redirection").queryParam("css1",cssLink1).build()).build();
The created Location header of the response will contain the following value:
http://myserver/app/services/public/whatever/redirection%3Fcss1=http:/yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css
IMHO this should be:
http://myserver/app/services/public/whatever/redirection?css1=http:/yui.yahooapis.com/3.2.0/build/cssreset/reset-min.css