* [EMAIL PROTECTED]:
> Author: jcompagner
> Date: Mon May 14 03:28:40 2007
> New Revision: 537771
>
> URL: http://svn.apache.org/viewvc?view=rev&rev=537771
> Log:
> relative urls for a bookmarkable request that will do a redirect to a wicket
> page fix.
>
> Modified:
>
> incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WebRequestCycle.java
>
> incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/servlet/ServletWebRequest.java
>
> Modified:
> incubator/wicket/trunk/jdk-1.4/wicket/src/main/java/org/apache/wicket/protocol/http/WebRequestCycle.java
>
> @@ -138,6 +139,13 @@
> final WebResponse currentResponse = getWebResponse();
> try
> {
> + redirectUrl =
> page.urlFor(IRedirectListener.INTERFACE).toString();
> + if (getWebRequest() instanceof
> ServletWebRequest)
> + {
> + // Get the redirect url and set it in
> the ServletWebRequest
> + // so that it can be used for relative
> url calculation.
> +
> ((ServletWebRequest)getWebRequest()).setWicketRedirectUrl(redirectUrl.replaceAll("../",
> ""));
> + }
That's sounds very hacky to me:
redirectUrl.replaceAll("../", "")
Can you describe the problem so that we try to provide a better
fix (and hopefully AlMaw is listening to us ;-))
Cheers,
--
Jean-Baptiste Quenot
aka John Banana Qwerty
http://caraldi.com/jbq/