This seems to be the expected behaviour for RedirectRequestTarget. Wiki suggests ExternalLink as an alternative, if you want to go outside the web app: http://cwiki.apache.org/WICKET/how-to-redirect-to-an-external-non-wicket-page.html
br, Juha On Mon, Aug 10, 2009 at 9:39 AM, Nils Weinander<nils.weinan...@mogul.com> wrote: > Hi all > > I am having a minor problem with RequestCycle.setRequestTarget() > in Wicket 1.4. Before I do a workaround I have to check if I have > simply missed out on something. > > Assume my application is found at http://mydomain.com/mywebapp > > I expected > > getRequestCycle().setRequestTarget( > new RedirectRequestTarget("/anotherwebapp/page")); > > to redirect to > > http://mydomain.com/anotherwebapp/page > > considering the initial / but it doesn't, redirecting instead > to > > http://mydomain.com/mywebapp/anotherwebapp/page > > Am I doing anything wrong? Is this so by intention? > > getRequestCycle().setRequestTarget( > new RedirectRequestTarget( > "http://mydomain.com/anotherwebapp/page")); > > > I assume I can find http://mydomain.com from the HttpServletRequest > as a workaround. > > -- > mogul | nils.weinan...@mogul.com > hudiksvallsgatan 4, 113 30 stockholm sweden > +46 8 506 66 100 | +46 709 78 28 37 > skype:nils.weinander > www.mogul.com Part of the Addnode Group > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org