You will find solutions under these subjects:

redirect to an external non-Wicket page
redirect to an external URL

e.g.
https://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html

Regards,

Bernard

On Fri, 22 Feb 2013 17:06:09 +0100, you wrote:

>Hello,
>
>I have a server-relative URL like /target/index (starting with a slash) and
>I'm looking for a way to redirect to http://mydomain.com*/target/index*.
>
>In Wicket (unfortunately still 1.4) I tried the following:
>
>RequestCycle.get().setRequestTarget(
>    new RedirectRequestTarget("/target/index")
>);
>
>Unfortunately Wicket thinks that the root slash refers to the Wicket
>application rather than the server's root. Therefore the redirect ends up
>here:
>
>http://mydomain.com/*wicketapp*/target/index
>*
>*
>I don't want Wicket to change my URL, so the Servlet should redirect to
>http://mydomain.com/target/index.  Any ideas how to achieve that?


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to