Sending absolute URL in Location header is the only correct way according to RFC. Wicket passes relative URL to HttpServletResponse#sendRedirect method, but J2EE web containers are obligated to convert this to absolute URL following some rules. See: http://docs.oracle.com/javaee/5/api/javax/servlet/http/HttpServletResponse.html#sendRedirect Sendind relative URLs via Location header would be violation of RFC. You can realize this by implementing your own WebResponse and setting this header by addHeader/setHeader (avoiding sendRedirect). Most browsers can handle it.
-- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-generates-absolute-urls-for-redirects-301-Whats-the-way-out-tp4577479p4580060.html Sent from the Users forum mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org